Skip to content

Commit

Permalink
Merge pull request #637 from PetrDlouhy/coverage
Browse files Browse the repository at this point in the history
Add coverage
  • Loading branch information
jrief authored Jul 28, 2024
2 parents 4521a6c + 4f331d7 commit d9d21ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ jobs:
- name: Run tests
run: tox

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ deps =
django50: Django<5.1
django51: Django>=5.1a1,<5.2
testfixtures
coverage
commands =
python -Wd {envbindir}/django-admin test {posargs}
python -Wd -m coverage run {envbindir}/django-admin test {posargs}
coverage xml -o coverage.xml
ignore_outcome =
djangomain: true

0 comments on commit d9d21ca

Please sign in to comment.