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 - name: Test with tox
run: 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" - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter before-build; fi"
# command to install dependencies # command to install dependencies
install: install:
- pip install -U tox-travis setuptools codecov - pip install -U tox-travis setuptools
# command to run tests # command to run tests
script: tox script: tox
after_success: 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 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" - "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi"
notifications: notifications: