From c29d60fed9f66d0d70d2c922644577614aeebb8b Mon Sep 17 00:00:00 2001 From: kim pham Date: Wed, 13 Nov 2024 18:32:38 +0100 Subject: [PATCH] add badge from gist --- .github/workflows/test.yml | 15 ++++++++++++++- README.md | 4 ++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d88441..f5c9178 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file + diff-cover --compare-branch=main coverage.xml --fail-under=85 + + - name: "Make badge" + uses: schneegans/dynamic-badges-action@v1.4.0 + 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 }} \ No newline at end of file diff --git a/README.md b/README.md index f505367..ab6df07 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # jp2_remediator + + + + README for the module to validate jp2images https://pypi.org/project/jp2_remediator/