From 0cd073f4ee41e8c1adb0409bc9c0d1e54df3c25e Mon Sep 17 00:00:00 2001 From: "Mike A." Date: Tue, 3 Sep 2024 19:48:09 +0200 Subject: [PATCH] ci: Install poetry even on cache hit --- .github/actions/setup-project/action.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-project/action.yml b/.github/actions/setup-project/action.yml index f2b3158..4dfb260 100644 --- a/.github/actions/setup-project/action.yml +++ b/.github/actions/setup-project/action.yml @@ -17,6 +17,12 @@ runs: with: python-version: ${{ inputs.python-version }} + - name: Install poetry + shell: bash + run: | + python -m pip install poetry + poetry config virtualenvs.in-project true + - name: Get cache key id: cache-key shell: bash @@ -34,7 +40,4 @@ runs: - name: Install dependencies if: steps.cache-dependencies.outputs.cache-hit != 'true' shell: bash - run: | - python -m pip install poetry - poetry config virtualenvs.in-project true - poetry install --with ${{ inputs.dependency-groups }} + run: poetry install --with ${{ inputs.dependency-groups }}