From a8f3b9c81160c6f946c3795e1656c1af0e8d827b Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Wed, 28 Dec 2022 00:11:52 +0100 Subject: [PATCH] attempt to fix poetry windows cache issue --- .github/workflows/run-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 4e77db0..9d4aaa7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -41,6 +41,11 @@ jobs: path: ~/.local key: poetry-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }} + - name: Add poetry to windows path + if: "startsWith(runner.os, 'windows')" + run: | + echo "C:\Users\runneradmin\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Install and configure Poetry uses: snok/install-poetry@v1.3.3 with: @@ -48,11 +53,6 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - - name: Add poetry to windows path - if: "startsWith(runner.os, 'windows')" - run: | - echo "C:\Users\runneradmin\.local\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: Install dependencies run: | poetry install