Update .gitlab-ci.yml file to use coverage
This commit is contained in:
@@ -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+\%)/'
|
||||
|
||||
Reference in New Issue
Block a user