Skip to content
Snippets Groups Projects
Commit fa0fa9db authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Try exposing HTML coverage report as artifact

parent 1ece83d6
No related branches found
No related tags found
1 merge request!1104Show coverage on MRs & export HTML report
......@@ -46,12 +46,13 @@ pytest:
script:
- export LANG=C # Hopefully detect anything relying on locale
- python3 -m pip install ".[test]"
- python3 -m pytest --color yes --verbose --cov=cal_tools --cov=xfel_calibrate --cov-report xml:coverage.xml --cov-report term
- python3 -m pytest --color yes --verbose --cov=cal_tools --cov=xfel_calibrate --cov-report html:htmlcov --cov-report term
coverage: '/TOTAL.*? (100(?:\.0+)?\%\|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
expose_as: 'Coverage report'
name: htmlcov
paths:
- htmlcov/
cython-editable-install-test:
stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment