Skip to content

Commit

Permalink
Merge branch 'hugsy/revisit-target-remote' of https://github.com/hugs…
Browse files Browse the repository at this point in the history
…y/gef into hugsy/revisit-target-remote
  • Loading branch information
hugsy committed Nov 11, 2024
2 parents 1d9f897 + 532e45d commit fd0bf0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@ jobs:
echo GEF_CI_ARCH=`uname --processor` >> $GITHUB_ENV
python${{ env.PY_VER }} -m pip install --user --upgrade -r tests/requirements.txt -r docs/requirements.txt --quiet
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')
make -C tests/binaries
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')
score_diff=$(python -c "print(f'{${new_score} - ${current_score}:.04f}')")
echo "new_score=${new_score}" >> $GITHUB_OUTPUT
echo "current_score=${current_score}" >> $GITHUB_OUTPUT
echo "score_diff=${score_diff}" >> $GITHUB_OUTPUT
- if: failure()
run: |
curl -sSf https://sshx.io/get | sh -s run
- name: Post comment
uses: actions/github-script@v7
with:
Expand Down

0 comments on commit fd0bf0a

Please sign in to comment.