mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 03:23:13 +00:00
Merge pull request #1838 from cclauss/patch-1
GitHub Actions: Add $PYENV_ROOT/shims to $PATH
This commit is contained in:
commit
80e418eca5
1 changed files with 7 additions and 3 deletions
10
.github/workflows/ubuntu_tests.yml
vendored
10
.github/workflows/ubuntu_tests.yml
vendored
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue