diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 430fa35abf3284266fcadd6fd322e8b4463744d5..e9d84cbb3a0ef132ef6243bd4d171ef2724adaa3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,31 +16,16 @@ stages: - build - deploy -#test: -# stage: test -# script: -# - pip install pytest-cov -# - coverage run -m pytest -# - coverage report -# - pytest --junitxml=report.xml -# artifacts: -# paths: -# - /builds/kypolab/theses/apg/kosc-automated-problem-generation-lib/report.xml -# when: always -# reports: -# junit: -# - /builds/kypolab/theses/apg/kosc-automated-problem-generation-lib/report.xml - -pytest: +test: stage: test script: - - pytest --junitxml=report.xml + - pip install pytest-cov + - coverage run -m pytest + - coverage xml artifacts: when: always reports: - junit: report.xml - - + cobertura: coverage.xml