Skip to content

Commit

Permalink
also create coverage badge for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Oct 29, 2024
1 parent d8fd293 commit e2952b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
- if: matrix.python-version == '3.12' && github.ref == 'refs/heads/main'
- if: matrix.python-version == '3.12'
run: |
pip install genbadge[coverage]
genbadge coverage --input-file coverage.xml --output-file ./dist/coverage/coverage-badge.svg
coverage html -d dist/coverage
- if: matrix.python-version == '3.12' && github.ref == 'refs/heads/main'
- if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage
Expand Down

0 comments on commit e2952b5

Please sign in to comment.