attempt to fix poetry windows cache issue

This commit is contained in:
Xavier Olive 2022-12-28 00:11:52 +01:00
parent 8f098671a0
commit a8f3b9c811

View File

@ -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