Skip to content

Commit

Permalink
Devops: Update codecov action (#6420)
Browse files Browse the repository at this point in the history
The `codecov-action@v4` made the `CODECOV_TOKEN` mandatory for PRs
from the origin and pushes to the origin.
  • Loading branch information
danielhollas authored May 26, 2024
1 parent e952d77 commit fc2a84d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit fc2a84d

Please sign in to comment.