Skip to content
Snippets Groups Projects

Test coverage

Merged Martin Bergemann requested to merge test_coverage into main
2 files
+ 12
19
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
18
@@ -48,31 +48,25 @@ test_39:
script:
- /tmp/test/bin/python -m pytest -vv
test_latest:
<< : *py_test
before_script:
- conda create -c conda-forge -q -p /tmp/test python=3.10 pip dask -y
- /tmp/test/bin/python -m pip install -e .[test]
script:
- /tmp/test/bin/python -m pytest -vv
artifacts:
when: always
reports:
junit: report.xml
paths:
- coverage_report
- report.xml
pages:
stage: report
needs: []
tags:
- conda
dependencies:
- test_latest
before_script:
- conda create -c conda-forge -q -p /tmp/test python=3.10 pip dask -y
- /tmp/test/bin/python -m pip install -e .[test]
script:
- mv coverage_report public/
- /tmp/test/bin/coverage run -m pytest
- /tmp/test/bin/coverage report
- /tmp/test/bin/coverage html
- /tmp/test/bin/coverage xml
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
after_script:
- mv htmlcov public
artifacts:
when: always
paths:
- public/
reports:
junit: report.xml
junit: coverage.xml
Loading