Skip to content

Commit

Permalink
Pin coverage to 96
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Dec 10, 2023
1 parent d0c3be7 commit f7d151e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:

steps:
- uses: "actions/checkout@v3"

- uses: "actions/setup-python@v4"
with:
cache: "pip"
Expand All @@ -77,12 +77,16 @@ jobs:
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
echo "total=$TOTAL" >> $GITHUB_ENV
# Report again and fail if under the threshold.
python -Im coverage report --fail-under=96
- name: "Upload HTML report."
uses: "actions/upload-artifact@v3"
with:
name: "html-report"
path: "htmlcov"

if: always()

- name: "Make badge"
uses: "schneegans/[email protected]"
with:
Expand Down

0 comments on commit f7d151e

Please sign in to comment.