1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-14 14:23:53 -05:00

Merge pull request #1838 from cclauss/patch-1

GitHub Actions: Add $PYENV_ROOT/shims to $PATH
This commit is contained in:
Anton Petrov
2021-03-09 14:41:02 +03:00
committed by GitHub

View File

@@ -24,9 +24,13 @@ jobs:
PYENV_ROOT: /home/runner/work/pyenv/pyenv
run: |
echo $PYENV_ROOT
echo "$HOME/bin" >> $GITHUB_PATH
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
bin/pyenv install ${{ matrix.python-version }}
bin/pyenv global ${{ matrix.python-version }}
bin/pyenv rehash
python --version
python -m pip --version
- run: python --version
- run: python -m pip --version
- shell: python # Prove that actual Python == expected Python
env:
EXPECTED_PYTHON: ${{ matrix.python-version }}
run: import os, sys ; assert sys.version.startswith(os.getenv("EXPECTED_PYTHON"))