Separate pyenv install, pyenv global, pyenv rehash

This commit is contained in:
Christian Clauss 2021-03-02 12:36:19 +01:00 committed by GitHub
parent acb5f572b2
commit 66ba35817b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,16 +20,13 @@ jobs:
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
# https://github.com/pyenv/pyenv#installation # https://github.com/pyenv/pyenv#installation
- run: pwd - run: pwd
- env: #- env:
PYENV_ROOT: /home/runner/work/pyenv/pyenv # PYENV_ROOT: /home/runner/work/pyenv/pyenv
run: | # run: |
echo $PYENV_ROOT # echo $PYENV_ROOT
echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH - run: PYENV_ROOT=$(pwd) echo "$PYENV_ROOT/shims:$PYENV_ROOT/bin" >> $GITHUB_PATH
echo $GITHUB_PATH - run: bin/pyenv install ${{ matrix.python-version }}
bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }}
bin/pyenv global ${{ matrix.python-version }} - run: bin/pyenv rehash
bin/pyenv rehash
python --version
python -m pip --version
- run: python --version - run: python --version
- run: python -m pip --version - run: python -m pip --version