Skip to content

Commit

Permalink
update codecov action
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Apr 30, 2024
1 parent 38eed62 commit 53f4981
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/get_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ jobs:
run: |
pytest -s --cov dascore --cov-report=xml
- name: upload coverage
uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: master_tests
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests # optional
name: master_tests # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
11 changes: 5 additions & 6 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,13 @@ jobs:
shell: bash -l {0}
run: ./.github/test_code.sh doctest

# upload coverage
- name: upload coverage
uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: PR_tests
fail_ci_if_error: false
files: ./coverage.xml
flags: unittests # optional
name: PR_tests # optional
token: ${{ secrets.CODECOV_TOKEN }} # required

# This is a very useful step for debugging, it allows you to ssh into the CI
# machine (https://github.com/marketplace/actions/debugging-with-tmate).
Expand Down

0 comments on commit 53f4981

Please sign in to comment.