Skip to content

Commit

Permalink
Turn on coverage reporting for codecov (PyGithub#1522)
Browse files Browse the repository at this point in the history
Since we migrated from Travis to GitHub Actions, our coverage on codecov
has been reporting as 0%, since uploading the .coverage file is a
terrible idea. Turn on XML-based reporting, ignore the file and use that
when we upload to codecov.
  • Loading branch information
s-t-e-v-e-n-k authored May 19, 2020
1 parent 291c463 commit e79b901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
if: matrix.python-version == 3.6
uses: codecov/codecov-action@v1
with:
file: ./.coverage
file: ./coverage.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
/MANIFEST
/PyGithub.egg-info/
/.coverage
/coverage.xml
/.idea
/developer.github.com/
/gh-pages/
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python =

[testenv]
deps = -rtest-requirements.txt
commands = pytest --cov=github {posargs}
commands = pytest --cov=github --cov-report=xml {posargs}

[testenv:lint]
basepython = python3.6
Expand Down

0 comments on commit e79b901

Please sign in to comment.