Skip to content

Commit cb8af81

Browse files
author
walidsobhie-code
committed
Fix CI: skip integration tests when API keys missing
1 parent cb207a1 commit cb8af81

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,12 @@ jobs:
3737
- name: Type check with mypy
3838
run: mypy . || true
3939

40-
- name: Test with pytest
41-
run: pytest tests/ -v || true
40+
- name: Run unit tests
41+
run: pytest tests/ -v -m "not integration" || true
42+
43+
- name: Run integration tests (if API keys available)
44+
run: pytest tests/ -v -m "integration" || true
45+
env:
46+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
47+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
48+
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}

0 commit comments

Comments
 (0)