Skip to content

Commit

Permalink
Fix code coverage with external tests (#685)
Browse files Browse the repository at this point in the history
Co-authored-by: b.nativi <[email protected]>
  • Loading branch information
bnativi and b.nativi authored Jul 29, 2024
1 parent 5fcbd52 commit 5c64c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
run: pip install -e ".[test]"
working-directory: ./client
- name: run integration tests
run: coverage run --source="api/valor_api,client/valor" -m pytest -v integration_tests/client/*
run: coverage run -a --source="api/valor_api,client/valor" -m pytest -v integration_tests/client/*
- name: run external integration tests
run: |
if ${{ github.ref == 'refs/heads/main' }}; then
coverage run --source="api/valor_api,client/valor" -m pytest -v integration_tests/external/*
coverage run -a --source="api/valor_api,client/valor" -m pytest -v integration_tests/external/*
fi
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand Down

0 comments on commit 5c64c17

Please sign in to comment.