mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-11-10 17:10:00 +08:00
ci: pin the integration tests to claude-opus-5 (#1853)
The test workflows name no model, so they run on the Claude Code CLI's default model. Since the bump to Claude Code 2.1.280 that default is Opus 5.5, which the CI account's API access refuses, so the tests fail and the release job never runs. Setting ANTHROPIC_MODEL at the workflow level keeps the tests independent of the CLI's default model, the same fix the Agent SDK for Python used. Co-authored-by: Claude Code <[email protected]>
This commit is contained in:
co-authored by
Claude Code
parent
9ca9355b36
commit
46a42b4323
@@ -17,6 +17,11 @@ permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Pin the model so these tests don't depend on the CLI's default model,
|
||||
# which can change with each Claude Code release.
|
||||
env:
|
||||
ANTHROPIC_MODEL: claude-opus-5
|
||||
|
||||
jobs:
|
||||
test-inline-prompt:
|
||||
# Skip on fork PRs since they can't mint the OIDC token used for Claude API auth
|
||||
|
||||
@@ -12,6 +12,11 @@ permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Pin the model so these tests don't depend on the CLI's default model,
|
||||
# which can change with each Claude Code release.
|
||||
env:
|
||||
ANTHROPIC_MODEL: claude-opus-5
|
||||
|
||||
jobs:
|
||||
test-custom-executables:
|
||||
# Skip on fork PRs since they can't mint the OIDC token used for Claude API auth
|
||||
|
||||
@@ -12,6 +12,11 @@ permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Pin the model so these tests don't depend on the CLI's default model,
|
||||
# which can change with each Claude Code release.
|
||||
env:
|
||||
ANTHROPIC_MODEL: claude-opus-5
|
||||
|
||||
jobs:
|
||||
test-mcp-integration:
|
||||
# Skip on fork PRs since they can't mint the OIDC token used for Claude API auth
|
||||
|
||||
@@ -12,6 +12,11 @@ permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Pin the model so these tests don't depend on the CLI's default model,
|
||||
# which can change with each Claude Code release.
|
||||
env:
|
||||
ANTHROPIC_MODEL: claude-opus-5
|
||||
|
||||
jobs:
|
||||
test-settings-inline-allow:
|
||||
# Skip on fork PRs since they can't mint the OIDC token used for Claude API auth
|
||||
|
||||
@@ -12,6 +12,11 @@ permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
# Pin the model so these tests don't depend on the CLI's default model,
|
||||
# which can change with each Claude Code release.
|
||||
env:
|
||||
ANTHROPIC_MODEL: claude-opus-5
|
||||
|
||||
jobs:
|
||||
test-basic-types:
|
||||
name: Test Basic Type Conversions
|
||||
|
||||
Reference in New Issue
Block a user