Skip to content
Snippets Groups Projects
Commit 9ca51997 authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Merge branch 'test_coverage' into 'main'

Test coverage

See merge request !7
parents 9774c212 c9c67949
No related branches found
No related tags found
1 merge request!7Test coverage
Pipeline #19342 passed
......@@ -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
[pytest]
testpaths=src/rechunk_data/tests
addopts= --cov ./src --cov-report=html:coverage_report --cov-report term-missing --junitxml=report.xml
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