From be1b168cffa84e72f362b51e3efe4c5f106acaf9 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Tue, 10 May 2022 23:11:29 -0700 Subject: [PATCH 1/3] Updated installer test to utilize pyenv version that can install Python v3.9.11 Sent PR to the upstream maintainer --- .github/workflows/installation.yaml | 80 ++++++++++++++--------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/installation.yaml b/.github/workflows/installation.yaml index 70dfb2000..3cff18574 100644 --- a/.github/workflows/installation.yaml +++ b/.github/workflows/installation.yaml @@ -9,44 +9,44 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: + - uses: actions/checkout@v2 + with: fetch-depth: 1 - - name: Output Python version - id: python-version - run: | - echo "::set-output name=python-version::$(cat .python-version)" - - name: Cache pyenv versions - uses: actions/cache@v2.1.1 - id: cached-pyenvs - with: - path: /opt/hostedtoolcache/pyenv_root - key: ${{ runner.os }}-pyenv - - name: Install pyenv versions - uses: gabrielfalcao/pyenv-action@v9 - with: - default: ${{ steps.python-version.outputs.python-version }} - # if: steps.cached-pyenvs.outputs.cache-hit != 'true' - - name: Install Poetry - run: | - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - source $HOME/.poetry/env - pyenv install -s - poetry config virtualenvs.in-project true - poetry env info - poetry env use `cat .python-version` - - name: Cache dependencies - uses: actions/cache@v2.1.1 - id: cached-poetry-dependencies - with: - path: .venv - key: venv-${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies - run: | - source $HOME/.poetry/env - poetry install - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - - name: Run tests - run: | - source $HOME/.poetry/env - poetry run pytest + - name: Output Python version + id: python-version + run: | + echo "::set-output name=python-version::$(cat .python-version)" + - name: Cache pyenv versions + uses: actions/cache@v2.1.1 + id: cached-pyenvs + with: + path: /opt/hostedtoolcache/pyenv_root + key: ${{ runner.os }}-pyenv + - name: Install pyenv versions + uses: blakewatters/pyenv-action@v9 + with: + default: ${{ steps.python-version.outputs.python-version }} + # if: steps.cached-pyenvs.outputs.cache-hit != 'true' + - name: Install Poetry + run: | + curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python + source $HOME/.poetry/env + pyenv install -s + poetry config virtualenvs.in-project true + poetry env info + poetry env use `cat .python-version` + - name: Cache dependencies + uses: actions/cache@v2.1.1 + id: cached-poetry-dependencies + with: + path: .venv + key: venv-${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} + - name: Install dependencies + run: | + source $HOME/.poetry/env + poetry install + if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' + - name: Run tests + run: | + source $HOME/.poetry/env + poetry run pytest From 84265c7aa6300316421e81ccbf622cd2f4bab1fb Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Wed, 18 May 2022 10:11:35 -0700 Subject: [PATCH 2/3] switch to gabrielfalcao repo --- .github/workflows/installation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/installation.yaml b/.github/workflows/installation.yaml index 3cff18574..f3dc73f19 100644 --- a/.github/workflows/installation.yaml +++ b/.github/workflows/installation.yaml @@ -23,7 +23,7 @@ jobs: path: /opt/hostedtoolcache/pyenv_root key: ${{ runner.os }}-pyenv - name: Install pyenv versions - uses: blakewatters/pyenv-action@v9 + uses: gabrielfalcao/pyenv-action@v9 with: default: ${{ steps.python-version.outputs.python-version }} # if: steps.cached-pyenvs.outputs.cache-hit != 'true' From bd3f5e4150d3d9fbaf623114a5c8fb778737c6f5 Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Wed, 18 May 2022 10:22:51 -0700 Subject: [PATCH 3/3] bump to v10 --- .github/workflows/installation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/installation.yaml b/.github/workflows/installation.yaml index f3dc73f19..550d5e138 100644 --- a/.github/workflows/installation.yaml +++ b/.github/workflows/installation.yaml @@ -23,7 +23,7 @@ jobs: path: /opt/hostedtoolcache/pyenv_root key: ${{ runner.os }}-pyenv - name: Install pyenv versions - uses: gabrielfalcao/pyenv-action@v9 + uses: gabrielfalcao/pyenv-action@v10 with: default: ${{ steps.python-version.outputs.python-version }} # if: steps.cached-pyenvs.outputs.cache-hit != 'true'