diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b1237fae7..11a2210f0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,8 +14,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - fetch-depth: '0' - name: Setup run: | sudo apt-get -qq update @@ -36,8 +34,8 @@ jobs: new_score=$(cat docs/coverage/gef_py.html | grep pc_cov | sed 's?.*\([^%]*\)%?\1?g') diff_score=$(python -c "print(${new_score} - ${current_score})") commit=${{ github.event.pull_request.head.sha }} - include_tests=$(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ tests/' || 0) - include_docs=$(git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ docs/' || 0) + include_tests=$((git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ tests/') || echo 0) + include_docs=$((git diff ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} --compact-summary | egrep --count '^ docs/') || echo 0) echo "commit=${commit}" >> $GITHUB_OUTPUT echo "new_coverage_score=${new_score}" >> $GITHUB_OUTPUT echo "current_coverage_score=${current_score}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index c34c4e5d3..a4672ceca 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -18,6 +18,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Install pre-requisite run: | + sudo apt update sudo apt install gdb-multiarch python3 python3-dev python3-wheel python3-setuptools git cmake gcc g++ pkg-config libglib2.0-dev gdbserver qemu-user -y version=$(gdb -q -nx -ex 'pi print(f"{sys.version_info.major}.{sys.version_info.minor}", end="")' -ex quit) python${version} -m pip install --requirement docs/requirements.txt --upgrade diff --git a/docs/testing.md b/docs/testing.md index c6d1584eb..0d76db553 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -120,8 +120,8 @@ using a regular Python REPL: ```text >>> import rpyc >>> c = rpyc.connect("localhost", 4444) ->>> gdb = c.root._gdb ->>> gef = c.root._gef +>>> gdb = c.root.gdb +>>> gef = c.root.gef # We can now fully control the remote GDB >>> gdb.execute("file /bin/ls") >>> gdb.execute("start")