Skip to content

Commit

Permalink
[CI] Fixed incorrect coverage check
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Oct 22, 2022
1 parent be82d55 commit 850a45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Expand Up @@ -91,5 +91,5 @@ jobs:
current_score=$(curl --silent https://hugsy.github.io/gef/coverage/gef_py.html | grep pc_cov | sed 's?.*<span class="pc_cov">\([^%]*\)%</span>?\1?g')
bash scripts/generate-coverage-docs.sh
new_score=$(cat docs/coverage/gef_py.html | grep pc_cov | sed 's?.*<span class="pc_cov">\([^%]*\)%</span>?\1?g')
echo "Test coverage score: ${new_score}% (current ${current_score}%)"
python${{ env.PY_VER }} -c "( ${new_score} < ${current_score} ) or exit(1)"
echo "New coverage score: ${new_score}% (current ${current_score}%)"
python${{ env.PY_VER }} -c "( ${new_score} >= ${current_score} ) or exit(1)"

0 comments on commit 850a45d

Please sign in to comment.