Skip to content

Commit

Permalink
Fix CI failure due to missing coverage when tests are skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Dec 5, 2020
1 parent 20194cf commit 3aa092f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,22 @@ jobs:
name: coverage
path: coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml

combine:
all-checks:
if: ${{ always() }}
runs-on: ubuntu-latest
name: "All tests and coverage"
name: "All tests"
needs: [changes, style, test]
steps:
- name: Check build matrix status
if: ${{ needs.changes.outputs.changes == 'true' && (needs.style.result != 'success' || needs.test.result != 'success') }}
run: exit 1

upload-coverage:
runs-on: ubuntu-latest
name: "Upload coverage"
needs: [changes, all-checks]
if: ${{ needs.changes.outputs.changes == 'true' && needs.all-checks.result == 'success' }}
steps:
- uses: actions/checkout@v2

- name: Set up Python
Expand Down

0 comments on commit 3aa092f

Please sign in to comment.