.gitlab-ci.yml

This commit is contained in:
Oscar Krause 2025-04-08 09:17:44 +02:00
parent c3dbc043b3
commit 6d5b389f2a

View File

@ -272,12 +272,13 @@ test_coverage:
- cd test
script:
- pip install pytest pytest-cov
- coverage run -m pytest main.py
- coverage run -m pytest main.py --junitxml=report.xml --suppress-no-test-exit-code
- coverage report
- coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
junit: [ '**/report.xml' ]
coverage_report:
coverage_format: cobertura
path: '**/coverage.xml'