From b66160cc42fc1be8b4e4e96d3cfdc97479a770a6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:33:06 +0100 Subject: [PATCH 01/25] GitHub Action to build Python verssions on Ubuntu --- .github/workflows/ubuntu_tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ubuntu_tests.yml diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml new file mode 100644 index 00000000..4c50f13f --- /dev/null +++ b/.github/workflows/ubuntu_tests.yml @@ -0,0 +1,25 @@ +name: ubuntu_tests +on: [pull_request, push] +jobs: + ubuntu_tests: + strategy: + fail-fast: false + matrix: + python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + # Normally, we would use the superbly maintained... + # - uses: actions/setup-python@v2 + # 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 pyenv 1>/dev/null 2>&1; then\n eval "$(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: pyenv install ${{ matrix.python-version }} From 665f1f9aa429e511afc7ec2a2d5b3e445ba5e69d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:35:11 +0100 Subject: [PATCH 02/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 4c50f13f..c021bbae 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -19,7 +19,7 @@ jobs: - 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: | - sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev - libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev + 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: pyenv install ${{ matrix.python-version }} From 79bdfce276f64230eab59c2e3ffde9cd61c5f436 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:36:58 +0100 Subject: [PATCH 03/25] ./pyenv install ${{ matrix.python-version }} --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index c021bbae..19fd6fe2 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -22,4 +22,4 @@ jobs: 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: pyenv install ${{ matrix.python-version }} + - run: ./pyenv install ${{ matrix.python-version }} From e702adaee12415340e3e79f1a89979d3b5eacffd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:39:10 +0100 Subject: [PATCH 04/25] bin/pyenv install ${{ matrix.python-version }} --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 19fd6fe2..31dc1e6a 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -22,4 +22,4 @@ jobs: 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: ./pyenv install ${{ matrix.python-version }} + - run: bin/pyenv install ${{ matrix.python-version }} From d6b6e470b920e59acb2653cafa6b80bbd315a4ae Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:42:36 +0100 Subject: [PATCH 05/25] Python 3.9.1 --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 31dc1e6a..89b5b2cb 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9] + python-version: [2.7.18, 3.4.10, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From f9a0bfbe910cdadecc4a65c28fc7154a99de4b2e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 11:52:12 +0100 Subject: [PATCH 06/25] bin/pyenv global ${{ matrix.python-version }} --- .github/workflows/ubuntu_tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 89b5b2cb..33349cac 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7.18, 3.4.10, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] + python-version: [2.7.6, 2.7.18, 3.4.10, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -23,3 +23,12 @@ jobs: libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git - run: bin/pyenv install ${{ matrix.python-version }} + - run: bin/pyenv global ${{ matrix.python-version }} + - run: bin/pyenv rehash + - run: python --version || true + - run: python -m pip --version || true + - run: python2 --version || true + - run: python2 -m pip --version || true + - run: python3 --version || true + - run: python3 -m pip --version || true + From 170636769f16443de3f6bd8232528bc255de84fe Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 14:05:16 +0100 Subject: [PATCH 07/25] Python 3.6.13 and 3.7.10 --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 33349cac..33e49f42 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7.6, 2.7.18, 3.4.10, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] + python-version: [2.7.18, 3.5.10, 3.6.13, 3.7.10, 3.8.7, 3.9.1] # 2.7.6, 3.4.10, runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 4be2dc685aab406c2ab9d6767f8ef583232329cb Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 14:11:26 +0100 Subject: [PATCH 08/25] bin/pyenv update --- .github/workflows/ubuntu_tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 33e49f42..f5731f63 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -22,6 +22,8 @@ jobs: 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: git clone https://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update + - run: bin/pyenv update - run: bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }} - run: bin/pyenv rehash From 390a1dd8c704284dfb2bb89e3344163a1faa6ce8 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 14:19:11 +0100 Subject: [PATCH 09/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index f5731f63..537b7d30 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -22,7 +22,7 @@ jobs: 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: git clone https://github.com/pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update + - run: git clone https://github.com/pyenv/pyenv-update.git $(bin/pyenv root)/plugins/pyenv-update - run: bin/pyenv update - run: bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }} From 878e96978aa9879e30259240de5953482583a385 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 14:21:52 +0100 Subject: [PATCH 10/25] Python 3.6.12 and 3.7.9 --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 537b7d30..60901691 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7.18, 3.5.10, 3.6.13, 3.7.10, 3.8.7, 3.9.1] # 2.7.6, 3.4.10, + python-version: [2.7.18, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] # 2.7.6, 3.4.10, runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 086f594b8c1cd1ccc92e4ca5fd08ccaf13714e9e Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 14:35:19 +0100 Subject: [PATCH 11/25] runs-on: Ubuntu-20.04 --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 60901691..415e18a3 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: python-version: [2.7.18, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] # 2.7.6, 3.4.10, - runs-on: ubuntu-latest + runs-on: Ubuntu-20.04 steps: - uses: actions/checkout@v2 # Normally, we would use the superbly maintained... From ac198a66aef25c1e439412f48f282b81e9060017 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 18:32:44 +0100 Subject: [PATCH 12/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 415e18a3..4b1d062e 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -5,7 +5,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [2.7.18, 3.5.10, 3.6.12, 3.7.9, 3.8.7, 3.9.1] # 2.7.6, 3.4.10, + python-version: [2.7.18, 3.5.10, 3.6.13, 3.7.10, 3.8.8, 3.9.2] # 2.7.6, 3.4.10, runs-on: Ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -22,8 +22,7 @@ jobs: 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: git clone https://github.com/pyenv/pyenv-update.git $(bin/pyenv root)/plugins/pyenv-update - - run: bin/pyenv update + - run: cd $(pyenv root) && git pull - run: bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }} - run: bin/pyenv rehash From c8bbc481ee97c76283261c2b633cca53758f1348 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 18:36:18 +0100 Subject: [PATCH 13/25] cd $(bin/pyenv root) && git pull --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 4b1d062e..dc1e598e 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -22,7 +22,7 @@ jobs: 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 $(pyenv root) && git pull + - run: cd $(bin/pyenv root) && git pull - run: bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }} - run: bin/pyenv rehash From 604cd77d26d0bafbe4daf159eb6f3c9172e22d09 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 23 Feb 2021 18:42:03 +0100 Subject: [PATCH 14/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index dc1e598e..867e7383 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -17,12 +17,13 @@ jobs: # 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 pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.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 + - run: cd $(bin/pyenv root) && git pull || true + - run: git pull - run: bin/pyenv install ${{ matrix.python-version }} - run: bin/pyenv global ${{ matrix.python-version }} - run: bin/pyenv rehash From ee9c1d2b1c2a0a56ff7ccd55d9d650d4c832761b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 10:07:52 +0100 Subject: [PATCH 15/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 867e7383..cf5fcb9a 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -24,13 +24,9 @@ jobs: xz-utils tk-dev libffi-dev liblzma-dev python-openssl git - run: cd $(bin/pyenv root) && git pull || true - run: git pull - - run: bin/pyenv install ${{ matrix.python-version }} - - run: bin/pyenv global ${{ matrix.python-version }} - - run: bin/pyenv rehash - - run: python --version || true - - run: python -m pip --version || true - - run: python2 --version || true - - run: python2 -m pip --version || true - - run: python3 --version || true - - run: python3 -m pip --version || true - + - run: | + bin/pyenv install ${{ matrix.python-version }} + bin/pyenv global ${{ matrix.python-version }} + bin/pyenv rehash + python --version + python -m pip --version From 7c18f8a10cbf80741e977e2d424e14e57059adbe Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 10:31:10 +0100 Subject: [PATCH 16/25] 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 From 33335507b0d975fddfbc2ce4e7051f20e5788c56 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 10:40:14 +0100 Subject: [PATCH 17/25] env: PYENV_ROOT: $HOME" --- .github/workflows/ubuntu_tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index b31a89ee..b7302ce5 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -19,14 +19,15 @@ jobs: libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git # 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: cd $(pyenv root) && git pull || true - run: git pull - - run: | + - env: + PYENV_ROOT: $HOME" + run: | pyenv install ${{ matrix.python-version }} pyenv global ${{ matrix.python-version }} pyenv rehash From 36efced5b7006f4dbcd6b58a086f6b9d37e5bd97 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 10:42:12 +0100 Subject: [PATCH 18/25] echo "$HOME/.local/bin" >> $GITHUB_PATH --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index b7302ce5..b3ba3488 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -19,7 +19,7 @@ jobs: libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git # https://github.com/pyenv/pyenv#installation - - run: echo "$HOME/bin" >> $GITHUB_PATH + - run: echo "$HOME/.local/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 From bc185d76cd36279cdecc40275ad28ee42c6d6150 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:07:27 +0100 Subject: [PATCH 19/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index b3ba3488..3bc15a00 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -19,7 +19,10 @@ jobs: libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git # https://github.com/pyenv/pyenv#installation + - run: echo "$HOME/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 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 @@ -28,6 +31,7 @@ jobs: - env: PYENV_ROOT: $HOME" run: | + echo $PYENV_ROOT pyenv install ${{ matrix.python-version }} pyenv global ${{ matrix.python-version }} pyenv rehash From 61e2f742fc3bef28be99366c68e48b8ac76fd9f0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:16:02 +0100 Subject: [PATCH 20/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 3bc15a00..64560132 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -19,21 +19,14 @@ jobs: libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev python-openssl git # https://github.com/pyenv/pyenv#installation - - run: echo "$HOME/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 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 - env: - PYENV_ROOT: $HOME" + PYENV_ROOT: $HOME run: | echo $PYENV_ROOT - pyenv install ${{ matrix.python-version }} - pyenv global ${{ matrix.python-version }} - pyenv rehash + bin/pyenv init - + bin/pyenv install ${{ matrix.python-version }} + bin/pyenv global ${{ matrix.python-version }} + bin/pyenv rehash python --version python -m pip --version From 8c0603acf226cc89cb0b22ebd279607a66094b08 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:26:57 +0100 Subject: [PATCH 21/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 64560132..3d911a01 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -21,10 +21,10 @@ jobs: # https://github.com/pyenv/pyenv#installation - run: pwd - env: - PYENV_ROOT: $HOME + PYENV_ROOT: $(pwd) run: | echo $PYENV_ROOT - bin/pyenv init - + $(bin/pyenv init -) bin/pyenv install ${{ matrix.python-version }} bin/pyenv global ${{ matrix.python-version }} bin/pyenv rehash From 1e4c759b7a5b50fe82d19fe0733210da11bb8ed5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:28:15 +0100 Subject: [PATCH 22/25] PYENV_ROOT: /home/runner/work/pyenv/pyenv --- .github/workflows/ubuntu_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 3d911a01..f30d845e 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -21,7 +21,7 @@ jobs: # https://github.com/pyenv/pyenv#installation - run: pwd - env: - PYENV_ROOT: $(pwd) + PYENV_ROOT: /home/runner/work/pyenv/pyenv run: | echo $PYENV_ROOT $(bin/pyenv init -) From f86a799b5f3ccf01c54c2cac2cdd3f4b4bbb5839 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:30:13 +0100 Subject: [PATCH 23/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index f30d845e..5b3082e7 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -24,7 +24,6 @@ jobs: PYENV_ROOT: /home/runner/work/pyenv/pyenv run: | echo $PYENV_ROOT - $(bin/pyenv init -) bin/pyenv install ${{ matrix.python-version }} bin/pyenv global ${{ matrix.python-version }} bin/pyenv rehash From 5ec5f9598fc6eb62b2317b46311dc3d9e7eab3e7 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:45:00 +0100 Subject: [PATCH 24/25] echo "$HOME/bin" >> $GITHUB_PATH --- .github/workflows/ubuntu_tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index 5b3082e7..b7fc312b 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -24,8 +24,9 @@ jobs: PYENV_ROOT: /home/runner/work/pyenv/pyenv run: | echo $PYENV_ROOT - bin/pyenv install ${{ matrix.python-version }} - bin/pyenv global ${{ matrix.python-version }} - bin/pyenv rehash + echo "$HOME/bin" >> $GITHUB_PATH + pyenv install ${{ matrix.python-version }} + pyenv global ${{ matrix.python-version }} + pyenv rehash python --version python -m pip --version From 12e6f92a56382c5de63c0904452d2e326bcc365f Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 24 Feb 2021 12:48:18 +0100 Subject: [PATCH 25/25] Update ubuntu_tests.yml --- .github/workflows/ubuntu_tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu_tests.yml b/.github/workflows/ubuntu_tests.yml index b7fc312b..3d33e647 100644 --- a/.github/workflows/ubuntu_tests.yml +++ b/.github/workflows/ubuntu_tests.yml @@ -25,8 +25,8 @@ jobs: run: | echo $PYENV_ROOT echo "$HOME/bin" >> $GITHUB_PATH - pyenv install ${{ matrix.python-version }} - pyenv global ${{ matrix.python-version }} - pyenv rehash + bin/pyenv install ${{ matrix.python-version }} + bin/pyenv global ${{ matrix.python-version }} + bin/pyenv rehash python --version python -m pip --version