try xml
This commit is contained in:
parent
4c120393cb
commit
2ce413272e
2 changed files with 16 additions and 9 deletions
13
.github/workflows/build_lint_test.yaml
vendored
13
.github/workflows/build_lint_test.yaml
vendored
|
|
@ -22,13 +22,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install .[lint]
|
pip install .[lint]
|
||||||
./tools/linter check
|
./tools/linter check
|
||||||
- name: Run tests with coverage
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pip install .[test]
|
pip install .[test]
|
||||||
./tools/test
|
./tools/test xml
|
||||||
- name: Upload test coverage
|
- name: Report coverage
|
||||||
uses: actions/upload-artifact@v3
|
uses: 5monkeys/cobertura-action@master
|
||||||
with:
|
with:
|
||||||
name: test-coverage
|
path: coverage.xml
|
||||||
path: htmlcov/index.html
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
retention-days: 5
|
|
||||||
|
|
|
||||||
12
tools/test
12
tools/test
|
|
@ -1,2 +1,10 @@
|
||||||
# Run within root folder. Runs tests with coverage, and reports it to html
|
# Run within root directory
|
||||||
coverage run -m pytest && coverage html
|
|
||||||
|
if [ $1 = "html" ]; then
|
||||||
|
coverage run -m pytest && coverage html
|
||||||
|
elif [ $1 = "xml" ]; then
|
||||||
|
coverage run -m pytest && coverage xml
|
||||||
|
else
|
||||||
|
coverage run -m pytest && coverage report
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue