Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ jobs:
- name: Run tests
run: |
cd $GITHUB_WORKSPACE
export PYTHONPATH=$PYTHONPATH:./backend
pytest backend/tests/
export PYTHONPATH=$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/backend
pytest --cov=./backend --cov-report=xml:coverage.xml backend/tests/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
1 change: 1 addition & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ pytest-asyncio
httpx
mongomock-motor
pytest-env
pytest-cov