Skip to content

Commit

Permalink
Update test.yml add total to github env
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpham54 authored Nov 15, 2024
1 parent 3103612 commit 394e4aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ jobs:
git checkout -
diff-cover --compare-branch=main coverage.xml --fail-under=85
- name: "Combine"
run: |
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
echo "total=$TOTAL" >> $GITHUB_ENV
echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
- name: "Make badge"
uses: schneegans/[email protected]
with:
Expand Down

0 comments on commit 394e4aa

Please sign in to comment.