From 4a8145f09230b3fc02a9b10c8aad63b0019edb69 Mon Sep 17 00:00:00 2001 From: kdmukai Date: Wed, 6 Nov 2024 13:40:01 -0600 Subject: [PATCH] Coverage CI fix --- .github/workflows/tests.yml | 19 +++++++++++-------- pyproject.toml | 1 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 582243bd..d29a4b11 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -43,21 +43,24 @@ jobs: - name: Test with pytest run: | mkdir artifacts - coverage run \ - --data-file=./artifacts/cov_unit_tests \ - -m pytest \ + python -m pytest \ --color=yes \ + --cov=seedsigner \ + --cov-append \ + --cov-branch \ + --cov-report term \ --durations 5 \ -vv - coverage report --data-file=./artifacts/cov_unit_tests - name: Generate screenshots run: | - coverage run \ - --data-file=./artifacts/cov_screenshots \ - -m pytest tests/screenshot_generator/generator.py \ + python -m pytest tests/screenshot_generator/generator.py \ --color=yes \ + --cov=seedsigner \ + --cov-append \ + --cov-branch \ + --cov-report term \ + --cov-report html:./artifacts/cov_html \ -vv - coverage report --data-file=./artifacts/cov_screenshots cp -r ./seedsigner-screenshots ./artifacts/ - name: Coverage report run: | diff --git a/pyproject.toml b/pyproject.toml index 1fcfc5b3..6c05bdd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,6 @@ skip_covered = false skip_empty = true [tool.coverage.run] -source = ["src"] branch = true [tool.pytest.ini_options]