Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
python_version: ['3.10', '3.12', '3.13', '3.14']
# python_version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
python_version: ['3.14', '3.14t'] # Use less resources while debugging...
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand Down Expand Up @@ -147,6 +149,10 @@ jobs:
# like _socket. This is a workaround.
unset LD_LIBRARY_PATH
PWNLIB_NOTERM=1 python -bb -m coverage run -m sphinx -b doctest docs/source docs/build/doctest
pip install pytest-sphinx
PWNLIB_NOTERM=1 python -bb -m coverage run -m pytest docs/source docs/build/doctest || true
echo "=== pytest --doctest-modules ==="
PWNLIB_NOTERM=1 python -bb -m coverage run -m pytest --doctest-modules docs/source docs/build/doctest --ignore=docs/source/conf.py

- name: Coverage running examples
run: |
Expand Down Expand Up @@ -220,6 +226,23 @@ jobs:
pwn libcdb lookup puts 5f0 __libc_start_main_ret d0a
pwn libcdb hash b229d1da1e161f95e839cf90cded5f719e5de308

- name: Test free-threaded Python code with pytest-run-parallel
# https://py-free-threading.github.io/testing
env:
TERM: linux
timeout-minutes: 15
run: |
python -m pip install pytest pytest-timeout # pytest-run-parallel
echo "pytest -vvv --doctest-modules ..."
pytest -vvv || true # collecting ... collected 0 items
pytest -vvv --doctest-modules --timeout=60 pwnlib/adb/adb.py || true
pytest -vvv --doctest-modules --timeout=60 pwnlib/adb || true
pytest -vvv --doctest-modules --timeout=60 || true
python -m pip install pytest-run-parallel
pytest -vvv --doctest-modules --iterations=8 --timeout=60 || true
pytest -vvv --doctest-modules --parallel-threads=auto --timeout=60 || true
pytest -vvv --doctest-modules --iterations=8 --parallel-threads=auto

- name: Build source and wheel distributions
run: |
python -m build
Expand Down
Loading