Merge pull request #4378 from hugovk/codecov-flags

Add flags to Codecov for easier coverage checking/debugging
This commit is contained in:
Andrew Murray 2020-01-26 22:17:54 +11:00 committed by GitHub
commit a0a9b76ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 2 deletions

View File

@ -81,7 +81,7 @@ test_script:
after_test:
- pip install codecov
- codecov --file coverage.xml --name %PYTHON%
- codecov --file coverage.xml --name %PYTHON% --flags AppVeyor
matrix:
fast_finish: true

View File

@ -9,7 +9,7 @@ else
fi
if [[ $TRAVIS ]]; then
codecov
codecov --flags TravisCI
fi
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then

View File

@ -66,4 +66,5 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: GHA_Docker
name: ${{ matrix.docker }}

View File

@ -367,6 +367,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: GHA_Windows
name: ${{ runner.os }} Python ${{ matrix.python-version }}
- name: Build wheel

View File

@ -24,6 +24,12 @@ jobs:
env: PYTHONOPTIMIZE=2
- python-version: "3.6"
env: PYTHONOPTIMIZE=1
# Include new variables for Codecov
- os: ubuntu-latest
codecov-flag: GHA_Ubuntu
- os: macOS-latest
codecov-flag: GHA_macOS
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
@ -103,4 +109,5 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.codecov-flag }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}