File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -172,20 +172,14 @@ jobs:
172
172
steps :
173
173
- uses : actions/checkout@v2
174
174
175
- - name : Install pyenv
175
+ # deadsnakes/[email protected] does not support pythonX.Y-dbg
176
+ - name : Install debug Python
176
177
run : |
177
- export PATH="$HOME/.pyenv/bin:$PATH"
178
- curl https://pyenv.run | bash
179
- eval "$(pyenv init -)"
180
- echo "PATH=$PATH" >> $GITHUB_ENV
181
-
182
- # gabrielfalcao/pyenv-action@v7 currently can't install 3.9.1 since it uses pyenv 1.2.21
183
- - name : Build and install debug Python
184
- run : |
185
- PYTHON_VERSION=3.9.1
186
- export PYTHON_CONFIGURE_OPTS="--with-pydebug --enable-shared --with-assertions"
187
- pyenv install ${PYTHON_VERSION}
188
- pyenv global ${PYTHON_VERSION}
178
+ sudo add-apt-repository --yes ppa:deadsnakes/ppa
179
+ sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-venv python3.9-distutils python3.9-dbg
180
+ python3.9-dbg -mvenv ~/venv-python3.9
181
+ ~/venv-python3.9/bin/pip install --upgrade pip setuptools wheel
182
+ echo "$HOME/venv-python3.9/bin" >> $GITHUB_PATH
189
183
190
184
- name : Update CMake
191
185
@@ -230,7 +224,7 @@ jobs:
230
224
--read-var-info=yes
231
225
--track-origins=yes
232
226
--gen-suppressions=all
233
- $(pyenv which python) -m pytest tests
227
+ python -m pytest tests
234
228
235
229
236
230
# # Testing on clang using the excellent silkeh clang docker images
You can’t perform that action at this time.
0 commit comments