Skip to content

Commit

Permalink
Upload codecov in unit tests workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Waltlova <[email protected]>
  • Loading branch information
andywaltlova committed Oct 31, 2024
1 parent 72cd654 commit 5c1d6cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/codecov.yml

This file was deleted.

13 changes: 12 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@ jobs:
continue-on-error: true
- name: Test with pytest
run: |
pytest -v
pytest -v --cov=app --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: OS,PYTHON
file: ./coverage.xml
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ruff
pytest
pytest-cov
httpx
pre-commit

0 comments on commit 5c1d6cf

Please sign in to comment.