Skip to content

Commit

Permalink
Badge (#6)
Browse files Browse the repository at this point in the history
* add badge from gist

* Update test.yml gist

* Update README.md badge link update
  • Loading branch information
kimpham54 committed Nov 15, 2024
1 parent fef6903 commit 96ab3b8
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: 67d4eba1556653d896d2d36fcb3e5c7c
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/actions/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/actions/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 96ab3b8

Please sign in to comment.