diff --git a/.github/codecov.yml b/.github/codecov.yml index 9dc3686b..897013a1 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,9 +1,6 @@ codecov: notify: - after_n_builds: 16 - -comment: - after_n_builds: 16 + wait_for_ci: true coverage: status: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54837cd8..6ed5b905 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,14 +39,20 @@ jobs: test-pip: needs: [ pre-commit ] uses: ./.github/workflows/step_tests-pip.yml + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} coverage: needs: [ test-pip ] uses: ./.github/workflows/step_coverage.yml + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} test-conda: needs: [ test-pip ] uses: ./.github/workflows/step_tests-conda.yml + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} test-ui: needs: [ test-pip ] diff --git a/.github/workflows/step_coverage.yml b/.github/workflows/step_coverage.yml index c97d6bc6..f6aeea59 100644 --- a/.github/workflows/step_coverage.yml +++ b/.github/workflows/step_coverage.yml @@ -3,6 +3,10 @@ run-name: Check coverage on: workflow_call: + secrets: + CODECOV_TOKEN: + description: Codecov token + required: false permissions: contents: read @@ -39,6 +43,7 @@ jobs: - name: Upload the coverage uses: codecov/codecov-action@v3 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: ${{ matrix.coverage }} fail_ci_if_error: true verbose: true diff --git a/.github/workflows/step_tests-conda.yml b/.github/workflows/step_tests-conda.yml index 5a14a7fd..bf6b6c24 100644 --- a/.github/workflows/step_tests-conda.yml +++ b/.github/workflows/step_tests-conda.yml @@ -3,6 +3,10 @@ run-name: Run Conda tests for different OS on: workflow_call: + secrets: + CODECOV_TOKEN: + description: Codecov token + required: false permissions: contents: read @@ -65,6 +69,7 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v3 with: + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true files: coverage.xml diff --git a/.github/workflows/step_tests-pip.yml b/.github/workflows/step_tests-pip.yml index 6d6095ea..971e39f5 100644 --- a/.github/workflows/step_tests-pip.yml +++ b/.github/workflows/step_tests-pip.yml @@ -3,6 +3,10 @@ run-name: Run main tests using Pip on: workflow_call: + secrets: + CODECOV_TOKEN: + description: Codecov token + required: false permissions: contents: read @@ -84,5 +88,6 @@ jobs: - name: Upload coverage uses: codecov/codecov-action@v3 with: + token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true verbose: true