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 bcca482
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ 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: ./hnn_core/tests/
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests

0 comments on commit bcca482

Please sign in to comment.