Skip to content

Commit

Permalink
Coverage CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmukai committed Nov 6, 2024
1 parent 7989378 commit 4a8145f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ skip_covered = false
skip_empty = true

[tool.coverage.run]
source = ["src"]
branch = true

[tool.pytest.ini_options]
Expand Down

0 comments on commit 4a8145f

Please sign in to comment.