Upload coverage on same Python version as tests
MODIFY
.travis.yml
.travis.yml
@@ -13,8 +13,6 @@ install:
script:
- ./_travis/run.sh
-
-after_success:
- ./_travis/upload_coverage.sh
cache:

MODIFY
_travis/upload_coverage.sh
_travis/upload_coverage.sh
set -exo pipefail
if [[ -e .coverage ]]; then
- python3 -m pip install codecov
- python3 -m codecov --env TRAVIS_OS_NAME,NOX_SESSION
+ python -m pip install codecov
+ python -m codecov --env TRAVIS_OS_NAME,NOX_SESSION
fi

Upload coverage on same Python version as tests (#1690)