@@ -84,34 +84,10 @@ jobs:
8484 set -xe
8585 export PYENV_ROOT="$HOME/.pyenv"
8686 export PATH="$PYENV_ROOT/bin:$PATH"
87- #eval "$(pyenv init --path)"
8887 echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
8988 pyenv install $PYVER -v
9089 pyenv global $PYVER
9190 pyenv rehash
92- #sudo ln -sf $PYENV_ROOT/versions/$PYVER/bin/python3 /usr/local/bin/python
93- # https://gist.github.com/dukenmarga/3b055616ecef3b38a52de0ad81b67c2a
94- # said to:
95- # sudo ln -s /usr/local/lib64/python3.12/lib-dynload /usr/local/lib/python3.12/lib-dynload
96-
97- # - name: "What's in pyenv"
98- # run: |
99- # export PYENV_ROOT="$HOME/.pyenv"
100- # ls -lR $PYENV_ROOT/versions
101-
102- - name : " Try the thing"
103- run : |
104- python -c "import _posixsubprocess as psp; print(psp)"
105-
106- # - name: "What's in /usr/local/lib64"
107- # run: |
108- # export PYENV_ROOT="$HOME/.pyenv"
109- # ls -lR /usr/local/lib64
110- #
111- # - name: "What's in /usr/local/lib"
112- # run: |
113- # export PYENV_ROOT="$HOME/.pyenv"
114- # ls -lR /usr/local/lib
11591
11692 - name : " Show diagnostic info"
11793 run : |
@@ -124,18 +100,29 @@ jobs:
124100 python -m coverage debug pybehave
125101 env | sort
126102
103+ - name : " Check the Python version"
104+ env :
105+ EXPECTED : " ${{ matrix.python-version }}"
106+ run : |
107+ python -c "import os, sys; assert sys.version.startswith(os.getenv('EXPECTED').strip('t'))"
108+ python -c "import os, sys; assert getattr(sys, '_is_gil_enabled', lambda: True)() == (not os.getenv('EXPECTED').endswith('t'))"
109+
110+ - name : " Check the Python version 2"
111+ env :
112+ EXPECTED : " ${{ matrix.python-version }}"
113+ run : |
114+ python -c '
115+ import os, sys
116+ expected = os.getenv('EXPECTED')
117+ assert sys.version.startswith(expected.strip('t'))
118+ if expected.endswith('t'):
119+ assert not sys._is_gil_enabled()
120+ '
121+
127122 - name : " Install dependencies"
128123 run : |
129124 python -m pip install -r requirements/tox.pip
130125
131- # - name: Setup upterm session
132- # uses: lhotari/action-upterm@v1
133- #
134126 - name : " Run tox"
135- env :
136- XXXPYTHONVERBOSE : 2
137- PYVER : " ${{ matrix.python-version }}-dev"
138- PYTHON_CONFIGURE_OPTS : " --enable-shared --disable-test-modules"
139127 run : |
140- export COVERAGE_ANYPY=$HOME/.pyenv/versions/$PYVER/bin/python3
141128 python -m tox -v -- -rfsEX
0 commit comments