From fc2a84d9bd045d48d46511153dfde389070bf552 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Sun, 26 May 2024 16:53:53 +0100 Subject: [PATCH] Devops: Update codecov action (#6420) The `codecov-action@v4` made the `CODECOV_TOKEN` mandatory for PRs from the origin and pushes to the origin. --- .github/workflows/ci-code.yml | 3 ++- codecov.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-code.yml b/.github/workflows/ci-code.yml index 9ff7b8106b..bec312c60f 100644 --- a/.github/workflows/ci-code.yml +++ b/.github/workflows/ci-code.yml @@ -103,8 +103,9 @@ jobs: - name: Upload coverage report if: matrix.python-version == 3.9 && github.repository == 'aiidateam/aiida-core' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} name: aiida-pytests-py3.9 file: ./coverage.xml fail_ci_if_error: false # don't fail job, if coverage upload fails diff --git a/codecov.yml b/codecov.yml index 30e7498a7c..36739aca20 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,8 +1,8 @@ codecov: notify: - after_n_builds: 2 - wait_for_ci: yes - require_ci_to_pass: yes + after_n_builds: 1 + wait_for_ci: no + require_ci_to_pass: no coverage: precision: 2 # default, here for transparency