Update ubuntu_tests.yml

This commit is contained in:
Christian Clauss 2021-02-24 12:07:27 +01:00 committed by GitHub
parent 36efced5b7
commit bc185d76cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,10 @@ jobs:
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
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: echo "$HOME/bin" >> $GITHUB_PATH
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH - run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- run: pwd
- run: echo $GITHUB_PATH
# - run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.bash_profile # - run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.bash_profile
# - run: echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile # - run: echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
- run: echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile - run: echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
@ -28,6 +31,7 @@ jobs:
- env: - env:
PYENV_ROOT: $HOME" PYENV_ROOT: $HOME"
run: | run: |
echo $PYENV_ROOT
pyenv install ${{ matrix.python-version }} pyenv install ${{ matrix.python-version }}
pyenv global ${{ matrix.python-version }} pyenv global ${{ matrix.python-version }}
pyenv rehash pyenv rehash