From dcf56325e626f4c5c6fe101674e274fa27ef23d3 Mon Sep 17 00:00:00 2001 From: Eivind Jahren Date: Wed, 4 Dec 2024 10:22:20 +0100 Subject: [PATCH] Fix failing everest test due to doc not generating cov --- .github/workflows/test_everest.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_everest.yml b/.github/workflows/test_everest.yml index 0cb3924cbb2..7983664ae07 100644 --- a/.github/workflows/test_everest.yml +++ b/.github/workflows/test_everest.yml @@ -76,7 +76,7 @@ jobs: python -m everest.docs - name: Upload coverage to Codecov - if: inputs.test-type != 'everest-docs-entry-test' + if: inputs.test-type != 'everest-docs-entry-test' && inputs.test-type != 'doc' id: codecov1 uses: codecov/codecov-action@v4 continue-on-error: true @@ -86,12 +86,12 @@ jobs: files: cov1.xml,cov2.xml flags: ${{ inputs.test-type }} - name: codecov retry sleep - if: steps.codecov1.outcome == 'failure' && inputs.test-type != 'everest-docs-entry-test' + if: steps.codecov1.outcome == 'failure' && inputs.test-type != 'everest-docs-entry-test' && inputs.test-type != 'doc' run: | sleep 30 - name: Codecov retry uses: codecov/codecov-action@v4 - if: steps.codecov1.outcome == 'failure' && inputs.test-type != 'everest-docs-entry-test' + if: steps.codecov1.outcome == 'failure' && inputs.test-type != 'everest-docs-entry-test' && inputs.test-type != 'doc' with: token: ${{ secrets.CODECOV_TOKEN }} files: cov1.xml,cov2.xml @@ -99,7 +99,7 @@ jobs: fail_ci_if_error: ${{ github.ref == 'refs/heads/main' }} - name: Upload test results to Codecov - if: ${{ !cancelled() && inputs.test-type != 'everest-docs-entry-test' }} + if: ${{ !cancelled() && inputs.test-type != 'everest-docs-entry-test' && inputs.test-type != 'doc' }} uses: codecov/test-results-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }}