Fail CI when a pull request adds a retired OpenAI or Anthropic model
A retired AI model doesn't fail your tests, because your tests mock the LLM. It fails in production, the day after the shutdown date. So check model IDs where you check everything else: on the pull request. .github/workflows/models.yml: name: AI models on: pull_request jobs: models: runs-on: ubuntu-latest permissions: contents: read pull-requests: write # for the PR comment steps: - uses: actions/checkout@v4 - uses: versyka/versyka-action@v1 That's it. No account, no API key. A retired model (s…