File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10- build :
10+ test :
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 fail-fast : false
@@ -27,16 +27,25 @@ jobs:
2727 - name : run tests
2828 run : python run_tests.py
2929
30- build -debug :
30+ test -debug :
3131 runs-on : ubuntu-latest
3232 steps :
3333 - uses : actions/checkout@v4
34- - name : Set up debug Python
35- uses : deadsnakes/action@v3.2.0
34+ - name : Cache Python debug build
35+ uses : actions/cache@v4
36+ id : cache-python
3637 with :
37- python-version : " 3.13"
38- debug : true
38+ path : ~/python-debug
39+ key : python-3.12.12-pydebug
40+ - name : Build Python 3.12 with --with-pydebug
41+ if : steps.cache-python.outputs.cache-hit != 'true'
42+ run : |
43+ sudo apt-get update -qq && sudo apt-get install -y -qq build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev
44+ curl -sL https://www.python.org/ftp/python/3.12.12/Python-3.12.12.tgz | tar xz
45+ cd Python-3.12.12
46+ ./configure --with-pydebug --prefix=$HOME/python-debug -q
47+ make -j$(nproc) -s && make install -s
3948 - name : Install test dependencies
40- run : python -m pip install .[test]
49+ run : ~/ python-debug/bin/python3.12 -m pip install .[test]
4150 - name : Run tests (debug build)
42- run : python run_tests.py
51+ run : ~/ python-debug/bin/python3.12 run_tests.py
You can’t perform that action at this time.
0 commit comments