From 0757d47cfbf908e1fd17357453890567d634280d Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Wed, 28 Feb 2024 22:08:24 -0500 Subject: [PATCH] venv appears to be messing stuff up --- .github/library/setup/action.yml | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/library/setup/action.yml b/.github/library/setup/action.yml index 507e3615..6cba1c3c 100644 --- a/.github/library/setup/action.yml +++ b/.github/library/setup/action.yml @@ -21,22 +21,14 @@ runs: - name: Install and configure Poetry uses: snok/install-poetry@v1 with: - virtualenvs-create: true - virtualenvs-in-project: true installer-parallel: true - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v3 + - name: Cache Poetry cache + uses: actions/cache@v4 with: - path: .venv - key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies - # Dependencies appear to be dissapearing - # if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root - shell: bash - - name: Activate venv - run: | - source .venv/bin/activate - echo PATH=$PATH >> $GITHUB_ENV - shell: bash + path: ~/.cache/pypoetry + key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }} + - name: Cache Packages + uses: actions/cache@v4 + with: + path: ~/.local + key: poetry-local-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/*.yml') }}