Add GHA testing using Python debug interpreter

Add testing with the debug interpreter as it flushed out a few
problems - those fixed in previous commit.
This commit is contained in:
William S Fulton 2025-05-14 22:19:08 +01:00
parent 53f4751ffa
commit c39c1401cc
2 changed files with 14 additions and 5 deletions

View File

@ -129,6 +129,9 @@ jobs:
- SWIGLANG: python
VER: '3.13'
CSTD: gnu99
- SWIGLANG: python
VER: '3.13-dbg'
CSTD: gnu99
- SWIGLANG: python
VER: '3.13t' # no-gil testing
CSTD: gnu99

View File

@ -111,11 +111,17 @@ case "$SWIGLANG" in
if [[ "$VER" ]]; then
$RETRY sudo add-apt-repository -y ppa:deadsnakes/ppa
$RETRY sudo apt-get -qq update
if [[ "$VER" != *"t" ]]; then
$RETRY sudo apt-get -qq install python${VER}-dev
else
$RETRY sudo apt-get -qq install python${VER::-1}-dev python${VER::-1}-nogil
fi
case "$VER" in
*-dbg)
$RETRY sudo apt-get -qq install python${VER::-4}-dev python${VER}
;;
*t)
$RETRY sudo apt-get -qq install python${VER::-1}-dev python${VER::-1}-nogil
;;
*)
$RETRY sudo apt-get -qq install python${VER}-dev
;;
esac
WITHLANG=$WITHLANG=$SWIGLANG$VER
elif [[ "$PY2" ]]; then
$RETRY sudo apt-get install -qq python2-dev