mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-23 07:23:01 +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
|
PYENV_ROOT: /home/runner/work/pyenv/pyenv
|
||||||
run: |
|
run: |
|
||||||
echo $PYENV_ROOT
|
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 install ${{ matrix.python-version }}
|
||||||
bin/pyenv global ${{ matrix.python-version }}
|
bin/pyenv global ${{ matrix.python-version }}
|
||||||
bin/pyenv rehash
|
bin/pyenv rehash
|
||||||
python --version
|
- run: python --version
|
||||||
python -m pip --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