From cd63440c280dcba5d02fee0f174464581f6c7fb9 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Sun, 18 Jul 2021 20:32:13 +0200 Subject: ref: Move to ptest-cov Instead of using `coverage` which is not supported in the gitlab ce I'll be using `pytest-cov` to report a proper coverage in the job panel. Reference: https://docs.gitlab.com/ee/ci/pipelines/settings.html#test-coverage-parsing https://www.cypress.io/blog/2019/10/22/show-code-coverage-on-gitlab-ci/ --- .gitlab-ci.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a951333..c2c8eb4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,18 +38,8 @@ test: stage: test script: - pip install -r dev-requirements.txt - - pytest -n 4 --junitxml=report.xml + - pytest -n 4 --junitxml=report.xml --cov=importer artifacts: reports: junit: report.xml -coverage: - image: python:3-alpine - stage: test - script: - - pip install -r dev-requirements.txt - - coverage run -m pytest - - coverage xml -o cobertura.xml - artifacts: - reports: - cobertura: cobertura.xml -- cgit v1.2.3