Skip to content

Commit

Permalink
Experiment to add coverage to test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmukai committed Nov 6, 2024
1 parent 03274aa commit ab02028
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Test with pytest
run: |
mkdir artifacts
python -m pytest \
coverage run -m pytest \
--color=yes \
--cov=seedsigner \
--cov-append \
Expand All @@ -56,8 +56,12 @@ jobs:
-vv
- name: Generate screenshots
run: |
python -m pytest tests/screenshot_generator/generator.py
coverage run -m pytest tests/screenshot_generator/generator.py
cp -r ./seedsigner-screenshots ./artifacts/
-name: Coverage report
run: |
coverage combine
coverage report
- name: Archive CI Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ab02028

Please sign in to comment.