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
commit 80e418eca5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"))