From 4839b3ef9fc1403a682b8342fe6b103ff5e0fe90 Mon Sep 17 00:00:00 2001 From: steppke_a Date: Wed, 19 Apr 2023 13:31:54 +0000 Subject: [PATCH] Update .gitlab-ci.yml file to use coverage --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9610a8a..f122f7a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - echo "Starting pytest run" + - coverage run -m pytest + - coverage report + coverage: '/TOTAL.*\s+(\d+\%)/'