Update .gitlab-ci.yml file to use coverage

This commit is contained in:
2023-04-19 13:31:54 +00:00
parent 93e3bd4956
commit 4839b3ef9f

View File

@@ -1,3 +1,6 @@
# requires up-to-date conda environment to run the tests as
# the gitlab runner does not have access to /sf...
build-job:
stage: build
script:
@@ -11,5 +14,7 @@ run_tests:
- echo `pwd`
- pip install -e .
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
- pytest -v
- echo "Starting pytest run"
- coverage run -m pytest
- coverage report
coverage: '/TOTAL.*\s+(\d+\%)/'