fix code coverage report

This commit is contained in:
HgO 2024-04-17 16:30:09 +02:00
parent d330e88d54
commit 0d7726acd9
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -36,3 +36,4 @@ _version.py
.coverage
coverage.xml
coverage.lcov
lcov.info

View file

@ -60,7 +60,7 @@ tests:
stage: test
script:
- apk add --no-cache libstdc++
- pytest
- pytest --junitxml report.xml
cache:
policy: pull
artifacts:
@ -68,7 +68,8 @@ tests:
coverage_report:
coverage_format: cobertura
path: coverage.xml
coverage: '/^TOTAL\s+\d+\s+\d+\s+(\d+(\.\d+)?\%)$/'
junit: report.xml
coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d\.]+\%)$/'
needs:
- job: linting
artifacts: false

View file

@ -1,3 +1,3 @@
[pytest]
asyncio_mode=strict
addopts=--cov=matrix_alertbot --cov-report=xml:coverage.xml --cov-report=term
addopts=--cov=matrix_alertbot --cov-report=lcov:lcov.info --cov-report=coverage.xml --cov-report=term