From be26e33f4312e40ad6d31d02e6d6a118099ac20f Mon Sep 17 00:00:00 2001 From: slobentanzer Date: Thu, 30 Jan 2025 20:27:40 +0100 Subject: [PATCH] switch ci to pytest-cov xml generation --- .github/workflows/ci.yaml | 6 +++--- docs/coverage/coverage.svg | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4776243a..6a5d8d10 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,14 +29,14 @@ jobs: - name: Run tests and generate coverage report run: | - poetry run coverage run -m pytest test --ignore=./volumes + poetry run pytest --cov=biochatter --cov-report=xml test --ignore=./volumes poetry run coverage report - poetry run coverage xml shell: bash - name: Generate coverage badge if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.base_ref == 'refs/heads/main' && github.event.pull_request.merged == true) - run: poetry run coverage-badge -f -o docs/coverage/coverage.svg + run: | + poetry run coverage-badge -f -o docs/coverage/coverage.svg shell: bash - name: Commit changes diff --git a/docs/coverage/coverage.svg b/docs/coverage/coverage.svg index 90299371..1618ede7 100644 --- a/docs/coverage/coverage.svg +++ b/docs/coverage/coverage.svg @@ -9,13 +9,13 @@ - + coverage coverage - 76% - 76% + 74% + 74%