Skip to content

Commit 799c7ea

Browse files
committed
chore(CI): use a pinned prerelease version for fast installation
1 parent f83ef8a commit 799c7ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ jobs:
220220
echo "$HOME/.pyenv/shims" >> $GITHUB_PATH
221221
echo "PYENV_ROOT=$HOME/.pyenv" >> $GITHUB_ENV
222222
export PATH="$HOME/.pyenv/bin:$PATH"
223+
if [ "$PYTHON_VERSION" = "3.14-dev" ]; then
224+
# Replacing 3.14-dev with a pinned prerelease version for fast installation
225+
PYTHON_VERSION="3.14.0rc3"
226+
fi
223227
pyenv install $PYTHON_VERSION
224228
pyenv global $PYTHON_VERSION
225229
env:
@@ -244,6 +248,7 @@ jobs:
244248
fi
245249
echo "Installing python deps"
246250
poetry self add "poetry-dynamic-versioning[plugin]"
251+
echo "Use the correct Python version we've set up"
247252
poetry env use python$PYTHON_VERSION || poetry env use python3 # use the correct Python version we've set up
248253
poetry install --no-root --only=dev
249254
echo "Installed Dependencies"

0 commit comments

Comments
 (0)