Coverage CI fix

This commit is contained in:
kdmukai
2024-11-06 13:40:01 -06:00
parent 79893788e0
commit 4a8145f092
2 changed files with 11 additions and 9 deletions
+11 -8
View File
@@ -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: |
-1
View File
@@ -54,7 +54,6 @@ skip_covered = false
skip_empty = true
[tool.coverage.run]
source = ["src"]
branch = true
[tool.pytest.ini_options]