Move codecov to GitHub Actions
This commit is contained in:
parent
95918cda88
commit
50f6288c86
2 changed files with 5 additions and 2 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
@ -25,3 +25,7 @@ jobs:
|
|||
|
||||
- name: Test with tox
|
||||
run: tox
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
with:
|
||||
directory: '.tox/reports'
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue