Skip to content

Commit

Permalink
[ci] Adding a new test to validate new code is tested
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Oct 13, 2022
1 parent 3af8221 commit 5faeed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Run test coverage
run: |
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 docs/generate-coverage-docs.sh
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}% (old ${current_score}%)"
test ${current_score} -gt ${new_score} && (echo "New score cannot be lower." ; exit 1)

0 comments on commit 5faeed2

Please sign in to comment.