codecov io test coverage

This commit is contained in:
jbannon 2022-05-07 05:26:05 +00:00
parent ab2df88299
commit c8fdfb87ac
2 changed files with 10 additions and 1 deletions

View file

@ -29,3 +29,10 @@ jobs:
- name: Run tests with coverage
run: |
./tools/test
- uses: actions/checkout@master
- uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

View file

@ -1,7 +1,9 @@
# Run within root directory
if [[ $1 = "html" ]]; then
coverage run -m pytest && coverage html
coverage run -m pytest && coverage report && coverage html
elif [[ $1 = "xml" ]]; then
coverage run -m pytest && coverage report && coverage xml
elif [[ $1 = "unit" ]]; then
coverage run -m pytest tests/unit && coverage report
else