try lcov
This commit is contained in:
parent
747e803eff
commit
367aa5967e
2 changed files with 6 additions and 6 deletions
8
.github/workflows/build_lint_test.yaml
vendored
8
.github/workflows/build_lint_test.yaml
vendored
|
|
@ -25,10 +25,10 @@ jobs:
|
|||
- name: Run tests
|
||||
run: |
|
||||
pip install .[test]
|
||||
./tools/test xml
|
||||
./tools/test lcov
|
||||
- name: Report coverage
|
||||
uses: 5monkeys/cobertura-action@master
|
||||
uses: zgosalvez/github-actions-report-lcov@v1
|
||||
with:
|
||||
path: coverage.xml
|
||||
coverage-files: coverage.lcov
|
||||
artifact-name: code-coverage-report
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
minimum_coverage: 5 # TODO: Add more tests
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
if [ $1 = "html" ]; then
|
||||
coverage run -m pytest && coverage html
|
||||
elif [ $1 = "xml" ]; then
|
||||
coverage run -m pytest && coverage xml
|
||||
elif [ $1 = "lcov" ]; then
|
||||
coverage run -m pytest && coverage lcov
|
||||
else
|
||||
coverage run -m pytest && coverage report
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue