Skip to content

Commit

Permalink
ci: update to use codecov action to upload coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed Apr 30, 2024
1 parent a88934e commit c167263
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ jobs:
shell: bash -el {0}
run: |
python -m pytest . --cov=hnn_core hnn_core/tests/ --cov-report=xml
- name: Upload code coverage
shell: bash -el {0}
run: |
bash <(curl -s https://codecov.io/bash) -f ./coverage.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit c167263

Please sign in to comment.