This commit is contained in:
jbannon 2022-04-29 07:45:41 +00:00
parent 747e803eff
commit 367aa5967e
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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