From 80958ef53b475dd9b41bb21ce629e3ab81f0253c Mon Sep 17 00:00:00 2001 From: puerling Date: Thu, 12 Sep 2024 11:59:33 +0200 Subject: [PATCH] CI: use unittest directly for python code coverage --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9ed6d45..f6f065d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -472,7 +472,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - coverage run --source spirit --omit=spirit/spiritlib.py setup.py test > cov.txt + coverage run --source spirit --omit=spirit/spiritlib.py \ + -m unittest discover \ + --start-directory ./test \ + --pattern "*.py" \ + > cov.txt head cov.txt coverage report -m coverage xml