From 7c18f8a10cbf80741e977e2d424e14e57059adbe Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 10:31:10 +0100 Subject: [PATCH] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index cf5fcb9a..b31a89ee 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -14,19 +14,21 @@ jobs: # with: # python-version: ${{ matrix.python-version }} # ... but in the repo, we want to test pyenv builds on Ubuntu - # https://github.com/pyenv/pyenv#installation - - run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.bash_profile - - run: echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile - - run: echo -e 'if command -v bin/pyenv 1>/dev/null 2>&1; then\n eval "$(bin/pyenv init -)"\nfi' >> ~/.bash_profile - run: | sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git - - run: cd $(bin/pyenv root) && git pull || true + # https://github.com/pyenv/pyenv#installation + - run: echo "$HOME" >> $PYENV_ROOT + - run: echo "$HOME/bin" >> $GITHUB_PATH + # - run: echo 'export PYENV_ROOT=$(pwd)' >> ~/.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: cd $(pyenv root) && git pull || true - run: git pull - run: | - bin/pyenv install ${{ matrix.python-version }} - bin/pyenv global ${{ matrix.python-version }} - bin/pyenv rehash + pyenv install ${{ matrix.python-version }} + pyenv global ${{ matrix.python-version }} + pyenv rehash python --version python -m pip --version