Skip to content

Commit b88cd12

Browse files
committed
ci: Pass ANTHROPIC_API_KEY to backend tests
Enables integration tests requiring real API key to run in CI. Changes: - Add ANTHROPIC_API_KEY environment variable to backend-tests job - Secret is passed from GitHub secrets to pytest process - Tests in test_worker_agent_integration.py will now run instead of skip Previously, 6 integration tests were skipped due to missing API key. Now they will execute and validate real API behavior.
1 parent c140790 commit b88cd12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ jobs:
101101
git config --global user.email "actions@github.com"
102102
103103
- name: Run pytest with coverage
104+
env:
105+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
104106
run: |
105107
uv run pytest tests/ \
106108
--ignore=tests/e2e \

0 commit comments

Comments
 (0)