Skip to content

Commit

Permalink
add badge from gist
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpham54 authored Nov 13, 2024
1 parent 68033f3 commit c29d60f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,17 @@ jobs:
python -m coverage run -p -m pytest src/jp2_remediator/tests/unit
python -m coverage xml -o coverage-base.xml
git checkout -
diff-cover --compare-branch=main coverage.xml --fail-under=85
diff-cover --compare-branch=main coverage.xml --fail-under=85
- name: "Make badge"
uses: schneegans/[email protected]
with:
# GIST_TOKEN is a GitHub personal access token with scope "gist".
auth: ${{ secrets.GIST_TOKEN }}
gistID: 2820ee422d89a9fe10cb7fbd4706eeb5
filename: covbadge.json
label: Coverage
message: ${{ env.total }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.total }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# jp2_remediator

<a href="https://github.com/harvard-lts/jp2_remediator/blob/badge/.github/workflows/test.yml"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/kimpham54/67d4eba1556653d896d2d36fcb3e5c7c/raw/covbadge.json"></a>

<a href="https://github.com/harvard-lts/jp2_remediator/blob/badge/.github/workflows/test.yml"><img src="https://github.com/harvard-lts/jp2_remediator/actions/workflows/test.yml/badge.svg"></a>

README for the module to validate jp2images

https://pypi.org/project/jp2_remediator/
Expand Down

0 comments on commit c29d60f

Please sign in to comment.