diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54837cd8..07c7fd6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,14 +39,19 @@ jobs: test-pip: needs: [ pre-commit ] uses: ./.github/workflows/step_tests-pip.yml + with: + coverage: ${{ github.event_name != 'schedule' }} coverage: needs: [ test-pip ] uses: ./.github/workflows/step_coverage.yml + if: github.event_name != 'schedule' test-conda: needs: [ test-pip ] uses: ./.github/workflows/step_tests-conda.yml + with: + coverage: ${{ github.event_name != 'schedule' }} test-ui: needs: [ test-pip ] @@ -66,4 +71,5 @@ jobs: - uses: re-actors/alls-green@release/v1 with: jobs: ${{ toJSON(needs) }} + allowed-skips: coverage if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b315ea6d..81ffc0e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,11 +27,15 @@ jobs: test-pip: needs: [ pre-commit ] uses: ./.github/workflows/step_tests-pip.yml + with: + coverage: false if: "! inputs.skip-tests" test-conda: needs: [ test-pip ] uses: ./.github/workflows/step_tests-conda.yml + with: + coverage: false if: "! inputs.skip-tests" test-ui: diff --git a/.github/workflows/step_tests-conda.yml b/.github/workflows/step_tests-conda.yml index 4ccd01e4..f27f2b5a 100644 --- a/.github/workflows/step_tests-conda.yml +++ b/.github/workflows/step_tests-conda.yml @@ -3,6 +3,11 @@ run-name: Run Conda tests for different OS on: workflow_call: + inputs: + coverage: + type: boolean + description: Upload coverage to CodeCov + default: true permissions: contents: read @@ -64,3 +69,4 @@ jobs: with: fail_ci_if_error: true verbose: true + if: inputs.coverage diff --git a/.github/workflows/step_tests-pip.yml b/.github/workflows/step_tests-pip.yml index 600e388e..eb3ccb52 100644 --- a/.github/workflows/step_tests-pip.yml +++ b/.github/workflows/step_tests-pip.yml @@ -3,6 +3,11 @@ run-name: Run main tests using Pip on: workflow_call: + inputs: + coverage: + type: boolean + description: Upload coverage to CodeCov + default: true permissions: contents: read @@ -86,3 +91,4 @@ jobs: with: fail_ci_if_error: true verbose: true + if: inputs.coverage