Move codecov to GitHub Actions

This commit is contained in:
Tobias Gruetzmacher 2021-05-01 11:27:05 +02:00
parent 95918cda88
commit 50f6288c86
2 changed files with 5 additions and 2 deletions

View file

@ -25,3 +25,7 @@ jobs:
- name: Test with tox
run: tox
- uses: codecov/codecov-action@v1
with:
directory: '.tox/reports'

View file

@ -17,11 +17,10 @@ before_script:
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter before-build; fi"
# command to install dependencies
install:
- pip install -U tox-travis setuptools codecov
- pip install -U tox-travis setuptools
# command to run tests
script: tox
after_success:
- codecov --file .tox/reports/*/coverage.xml
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi"
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi"
notifications: