Skip to content

Commit

Permalink
Fixes / improvements to CI coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmukai committed Nov 6, 2024
1 parent c57ae0a commit f5a359a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,20 @@ jobs:
- name: Test with pytest
run: |
mkdir artifacts
coverage run -m pytest \
coverage run --data-file=./artifacts/coverage/results -m pytest \
--color=yes \
--cov=seedsigner \
--cov-append \
--cov-branch \
--cov-report term \
--cov-report html \
--cov-report html:./artifacts/cov_html \
--cov-report xml \
--durations 5 \
-vv
- name: Generate screenshots
run: |
coverage run -m pytest tests/screenshot_generator/generator.py
coverage run --data-file=./artifacts/coverage/results -m pytest tests/screenshot_generator/generator.py \
--color=yes \
-vv
cp -r ./seedsigner-screenshots ./artifacts/
- name: Coverage report
run: |
coverage combine
coverage report
coverage combine ./artifacts/coverage/*
coverage report --directory=./artifacts/cov_html
- name: Archive CI Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit f5a359a

Please sign in to comment.