Skip to content

Commit 80f9071

Browse files
authored
Update pythonpackage.yml
1 parent 8a897cc commit 80f9071

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ jobs:
5454
path: htmlcov
5555
# Use always() to always run this step to publish test results when there are test failures
5656
if: ${{ always() }}
57+
- name: Upload coverage to Codecov
58+
uses: codecov/codecov-action@v2
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
directory: .
62+
env_vars: OS,PYTHON
63+
fail_ci_if_error: true
64+
files: ./coverage.xml
65+
flags: unittests
66+
name: codecov-umbrella
67+
path_to_write_report: ./coverage/codecov_report.txt
68+
verbose: true
5769
- name: Check package consistency with twine
5870
run: |
5971
python setup.py check sdist bdist_wheel

0 commit comments

Comments
 (0)