Skip to content

Commit

Permalink
add coverage report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtoshev committed Jan 5, 2024
1 parent 3bd9445 commit e10922c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
- name: Install dependencies
run: |
poetry install
- name: Run pytest
- name: Run pytest and generate coverage report
run: |
.venv/bin/pytest
- name: Upload coverage reports to Codecov
.venv/bin/pytest --cov-report=xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
verbose: true

0 comments on commit e10922c

Please sign in to comment.