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
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pip install .[test]
|
pip install .[test]
|
||||||
./tools/test xml
|
./tools/test lcov
|
||||||
- name: Report coverage
|
- name: Report coverage
|
||||||
uses: 5monkeys/cobertura-action@master
|
uses: zgosalvez/github-actions-report-lcov@v1
|
||||||
with:
|
with:
|
||||||
path: coverage.xml
|
coverage-files: coverage.lcov
|
||||||
|
artifact-name: code-coverage-report
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
minimum_coverage: 5 # TODO: Add more tests
|
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
if [ $1 = "html" ]; then
|
if [ $1 = "html" ]; then
|
||||||
coverage run -m pytest && coverage html
|
coverage run -m pytest && coverage html
|
||||||
elif [ $1 = "xml" ]; then
|
elif [ $1 = "lcov" ]; then
|
||||||
coverage run -m pytest && coverage xml
|
coverage run -m pytest && coverage lcov
|
||||||
else
|
else
|
||||||
coverage run -m pytest && coverage report
|
coverage run -m pytest && coverage report
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue