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

View file

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