From e691d239046ef97d0e4edba404e12d00c9ae461b 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9ed6d456..23aa7c055 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -472,7 +472,8 @@ 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 --start-directory ./test --patern "*.py" > cov.txt head cov.txt coverage report -m coverage xml