codecov io test coverage
This commit is contained in:
parent
ab2df88299
commit
c8fdfb87ac
2 changed files with 10 additions and 1 deletions
7
.github/workflows/build_lint_test.yaml
vendored
7
.github/workflows/build_lint_test.yaml
vendored
|
|
@ -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)
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue