Skip to content

Commit

Permalink
ci: report coverage always (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Jul 15, 2020
1 parent 4c0737f commit a24998d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .builds/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ tasks:
- test: |
cd pytest
env COLUMNS=120 ../.venv/bin/tox -v
env COLUMNS=120 ../.venv/bin/tox -v; ret=$?
.ci/report-coverage.sh -n freebsd-py37-xdist -F SourceHut,FreeBSD
exit $ret
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
run: "${{ matrix.script_prefix }} tox -e ${{ matrix.tox_env }}"

- name: Report coverage
if: (contains(matrix.tox_env, '-coverage'))
if: always() && (contains(matrix.tox_env, '-coverage'))
env:
CODECOV_TOKEN: d79f3a85-e675-4d75-8f55-3d0e4a99ebe8
run: "bash .ci/report-coverage.sh -n '${{ matrix.name }}' -F 'GHA,${{ runner.os }}'"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: "${{ matrix.script_prefix }} tox -e ${{ matrix.tox_env }}"

- name: Report coverage
if: (contains(matrix.tox_env, '-coverage'))
if: always() && (contains(matrix.tox_env, '-coverage'))
env:
CODECOV_TOKEN: d79f3a85-e675-4d75-8f55-3d0e4a99ebe8
run: "bash .ci/report-coverage.sh -n '${{ matrix.name }}' -F 'GHA,${{ runner.os }}'"
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ before_script:

script:
- python -m tox -v --durations

after_script:
- .ci/report-coverage.sh -n "$TOXENV-$TRAVIS_OS_NAME" -F Travis,Linux

branches:
Expand Down

0 comments on commit a24998d

Please sign in to comment.