Skip to content

Commit 927497b

Browse files
committed
cleanup and assert we got what we need
1 parent 15813c5 commit 927497b

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

.github/workflows/nightly2.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -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,17 @@ 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+
127110
- name: "Install dependencies"
128111
run: |
129112
python -m pip install -r requirements/tox.pip
130113
131-
#- name: Setup upterm session
132-
# uses: lhotari/action-upterm@v1
133-
#
134114
- name: "Run tox"
135-
env:
136-
XXXPYTHONVERBOSE: 2
137-
PYVER: "${{ matrix.python-version }}-dev"
138-
PYTHON_CONFIGURE_OPTS: "--enable-shared --disable-test-modules"
139115
run: |
140-
export COVERAGE_ANYPY=$HOME/.pyenv/versions/$PYVER/bin/python3
141116
python -m tox -v -- -rfsEX

0 commit comments

Comments
 (0)