Skip to content

Commit 3e5ce0a

Browse files
committed
Replacing pyenv installation of python3.9-dbg with deadsnakes PPA
1 parent b5c8f3b commit 3e5ce0a

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,14 @@ jobs:
172172
steps:
173173
- uses: actions/checkout@v2
174174

175-
- name: Install pyenv
175+
# deadsnakes/[email protected] does not support pythonX.Y-dbg
176+
- name: Install debug Python
176177
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
189183
190184
- name: Update CMake
191185
uses: jwlawson/[email protected]
@@ -230,7 +224,7 @@ jobs:
230224
--read-var-info=yes
231225
--track-origins=yes
232226
--gen-suppressions=all
233-
$(pyenv which python) -m pytest tests
227+
python -m pytest tests
234228
235229
236230
# # Testing on clang using the excellent silkeh clang docker images

0 commit comments

Comments
 (0)