Turn on coverage reporting for codecov (#1522)

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.
This commit is contained in:
Steve Kowalik
2020-05-19 12:28:33 +10:00
committed by GitHub
parent 291c46303d
commit e79b9013fe
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -24,4 +24,4 @@ jobs:
if: matrix.python-version == 3.6
uses: codecov/codecov-action@v1
with:
file: ./.coverage
file: ./coverage.xml
+1
View File
@@ -39,6 +39,7 @@
/MANIFEST
/PyGithub.egg-info/
/.coverage
/coverage.xml
/.idea
/developer.github.com/
/gh-pages/
+1 -1
View File
@@ -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