From 3aa092fb665d923d36ed377246012705f85cf95f Mon Sep 17 00:00:00 2001 From: "Brandon T. Willard" Date: Sat, 5 Dec 2020 14:17:24 -0600 Subject: [PATCH] Fix CI failure due to missing coverage when tests are skipped --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b72cf361a..2dc6f0dfea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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