Skip to content

Commit

Permalink
Fix updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
katdom13 committed May 20, 2024
1 parent 3f99b83 commit f5e4ab9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ jobs:
- name: Store test coverage
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-data-${{ matrix.python }}
path: .coverage.*
if-no-files-found: ignore
retention-days: 1

coverage:
name: coverage
Expand All @@ -90,7 +92,21 @@ jobs:
- name: Retrieve test coverage
uses: actions/download-artifact@v4
with:
name: coverage
pattern: coverage-data-*
merge-multiple: true

- name: Check coverage
run: tox -e coverage

- name: + Combine coverage
run: |
python -Im coverage combine
python -Im coverage html --skip-covered --skip-empty
python -Im coverage report
echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
- name: 📈 Upload HTML report
uses: actions/upload-artifact@v4
with:
name: html-report
path: htmlcov

0 comments on commit f5e4ab9

Please sign in to comment.