diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87c828a2630d6afc4f4835e30a87a391a9ac6b7a..480d1c3eebb1d924c216dc9a8696b1fc7c1a7238 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 6812c5532412ce39a466c062e6eff6c89fef7c03..cfd486622dd95163c6e226f5637cab59ba875b06 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/*"]