Skip to content

Commit e308694

Browse files
feat(ci): Add test for minimum supported debug build of Python
1 parent f368d14 commit e308694

1 file changed

Lines changed: 31 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,37 @@ jobs:
579579
components: rust-src
580580
- name: Install python3 standalone debug build with nox
581581
run: |
582-
PBS_RELEASE="20241219"
583-
PBS_PYTHON_VERSION="3.13.1"
582+
PBS_RELEASE="20260211"
583+
PBS_PYTHON_VERSION="3.14.3"
584+
PBS_ARCHIVE="cpython-${PBS_PYTHON_VERSION}+${PBS_RELEASE}-x86_64-unknown-linux-gnu-debug-full.tar.zst"
585+
wget "https://github.com/indygreg/python-build-standalone/releases/download/${PBS_RELEASE}/${PBS_ARCHIVE}"
586+
tar -I zstd -xf "${PBS_ARCHIVE}"
587+
ls -l $(pwd)/python/install/bin
588+
ls -l $(pwd)/python/install/lib
589+
echo PATH=$(pwd)/python/install/bin:$PATH >> $GITHUB_ENV
590+
echo LD_LIBRARY_PATH=$(pwd)/python/install/lib:$LD_LIBRARY_PATH >> $GITHUB_ENV
591+
echo PYTHONHOME=$(pwd)/python/install >> $GITHUB_ENV
592+
echo PYO3_PYTHON=$(pwd)/python/install/bin/python3 >> $GITHUB_ENV
593+
- run: python3 -m sysconfig
594+
- run: python3 -m pip install --upgrade pip && pip install nox[uv]
595+
- run: python3 -m nox -s test
596+
597+
test-debug-min-version:
598+
if: ${{ contains(github.event.pull_request.labels.*.name, 'CI-build-full') || github.event_name != 'pull_request' }}
599+
needs: [fmt]
600+
runs-on: ubuntu-latest
601+
steps:
602+
- uses: actions/checkout@v6.0.2
603+
- uses: Swatinem/rust-cache@v2
604+
with:
605+
save-if: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
606+
- uses: dtolnay/rust-toolchain@stable
607+
with:
608+
components: rust-src
609+
- name: Install python3 standalone debug build with nox
610+
run: |
611+
PBS_RELEASE="20260211"
612+
PBS_PYTHON_VERSION="3.10.19"
584613
PBS_ARCHIVE="cpython-${PBS_PYTHON_VERSION}+${PBS_RELEASE}-x86_64-unknown-linux-gnu-debug-full.tar.zst"
585614
wget "https://github.com/indygreg/python-build-standalone/releases/download/${PBS_RELEASE}/${PBS_ARCHIVE}"
586615
tar -I zstd -xf "${PBS_ARCHIVE}"
@@ -592,21 +621,6 @@ jobs:
592621
echo PYO3_PYTHON=$(pwd)/python/install/bin/python3 >> $GITHUB_ENV
593622
- run: python3 -m sysconfig
594623
- run: python3 -m pip install --upgrade pip && pip install nox[uv]
595-
- run: |
596-
PYO3_CONFIG_FILE=$(mktemp)
597-
cat > $PYO3_CONFIG_FILE << EOF
598-
implementation=CPython
599-
version=3.13
600-
shared=true
601-
abi3=false
602-
lib_name=python3.13d
603-
lib_dir=${{ github.workspace }}/python/install/lib
604-
executable=${{ github.workspace }}/python/install/bin/python3
605-
pointer_width=64
606-
build_flags=Py_DEBUG,Py_REF_DEBUG
607-
suppress_build_script_link_lines=false
608-
EOF
609-
echo PYO3_CONFIG_FILE=$PYO3_CONFIG_FILE >> $GITHUB_ENV
610624
- run: python3 -m nox -s test
611625

612626
test-version-limits:

0 commit comments

Comments
 (0)