From 31c65ed83cec149abf00508f5a1902d1e46e2eca Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Fri, 18 Oct 2024 11:23:42 +0200 Subject: [PATCH] change testsuite in CI to run coverage.py directly --- .gitlab-ci.yml | 6 ++++-- pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87c828a..480d1c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,8 +39,10 @@ testsuite: - pip install "git+https://i10git.cs.fau.de/pycodegen/pystencils.git@v2.0-dev" - pip install -e . script: - - pytest -v --cov-report html --cov-report term --cov=src/pystencilssfg - - coverage xml # need to run separately for gitlab to parse + - coverage run -m pytest -v + - coverage report + - coverage html + - coverage xml artifacts: when: always paths: diff --git a/pyproject.toml b/pyproject.toml index 6812c55..cfd4866 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,3 +48,6 @@ versionfile_source = "src/pystencilssfg/_version.py" versionfile_build = "pystencilssfg/_version.py" tag_prefix = "v" parentdir_prefix = "pystencilssfg-" + +[tool.coverage.run] +include = ["src/pystencilssfg/*"] -- GitLab