Skip to content

Commit 1449fae

Browse files
committed
fix ci
1 parent f8efe5e commit 1449fae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,12 @@ jobs:
183183
if: ${{ runner.os == 'Linux' }}
184184
run: |
185185
# Use pyenv to install Python version that is not available via `actions/setup-python`
186+
unset PYENV_ROOT
186187
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
187188
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
188189
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
189190
echo 'eval "$(pyenv init - bash)"' >> ~/.bashrc
190-
source ~/.bashrc
191+
export PATH="$HOME/.pyenv/bin:$PATH"
191192
pyenv install $PYTHON_VERSION
192193
pyenv global $PYTHON_VERSION
193194
env:

0 commit comments

Comments
 (0)