Skip to content

Commit ed6f54d

Browse files
committed
fix: update CI tests to handle missing API keys
- Add marker filter to skip AI tests in CI - Set dummy OPENAI_API_KEY environment variable for tests - Fix coverage module path to use email_agent instead of src.email_agent
1 parent 1abe00c commit ed6f54d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
3030
- name: Run tests
3131
run: |
32-
pytest tests/ -v --cov=src.email_agent --cov-report=xml
32+
pytest tests/ -v --cov=email_agent --cov-report=xml -m "not ai"
33+
env:
34+
OPENAI_API_KEY: dummy-key-for-tests
3335

3436
- name: Upload coverage to Codecov
3537
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)