From f646b4d663d45359d38978c3d21df5766aef58f4 Mon Sep 17 00:00:00 2001 From: maxime Date: Wed, 2 Aug 2023 10:49:54 +0200 Subject: [PATCH] [ci-cd] coverage report --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ca0f68..a4b4ad1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,9 +47,16 @@ test: - PYVERSION: ["3.8", "3.9", "3.10"] script: - pipenv run pytest --version - - PYTHONPATH=./tests/ pipenv run pytest -v ./tests + - PYTHONPATH=./tests/ pipenv run coverage run --source halfapi -m pytest + - pipenv run coverage xml - pipenv run halfapi --version + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: coverage.xml + build_pypi: stage: build script: