From 0b8bc40435811367d3e3cc7f52cfd29730484cc5 Mon Sep 17 00:00:00 2001 From: Radovan Zivkovic Date: Wed, 8 Jan 2025 10:54:18 +0100 Subject: [PATCH] Use different GitHub actions to install poetry on ubuntu and windows --- .github/workflows/continous-integration.yml | 61 +++++++++++++++++---- 1 file changed, 50 insertions(+), 11 deletions(-) diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml index 99ae844c6cd7..a57558e82889 100644 --- a/.github/workflows/continous-integration.yml +++ b/.github/workflows/continous-integration.yml @@ -131,9 +131,13 @@ jobs: shell: bash - name: Install poetry 🦄 - uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 + if: needs.changes.outputs.backend == 'true' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b with: - poetry-version: ${{ env.POETRY_VERSION }} + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Load Poetry Cached Libraries ⬇ id: cache-poetry @@ -271,6 +275,16 @@ jobs: shell: bash - name: Install poetry 🦄 + if: needs.changes.outputs.backend == 'true' && matrix.os == 'ubuntu-22.04' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b + with: + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install poetry 🦄 + if: needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019' uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 with: poetry-version: ${{ env.POETRY_VERSION }} @@ -427,10 +441,20 @@ jobs: shell: bash - name: Install poetry 🦄 + if: needs.changes.outputs.backend == 'true' && matrix.os == 'ubuntu-22.04' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b + with: + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install poetry 🦄 + if: needs.changes.outputs.backend == 'true' && matrix.os == 'windows-2019' uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 with: poetry-version: ${{ env.POETRY_VERSION }} - +1 - name: Load Poetry Cached Libraries ⬇ id: cache-poetry if: needs.changes.outputs.backend == 'true' @@ -659,9 +683,13 @@ jobs: shell: bash - name: Install poetry 🦄 - uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 + if: needs.changes.outputs.backend == 'true' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b with: - poetry-version: ${{ env.POETRY_VERSION }} + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Load Poetry Cached Libraries ⬇ id: cache-poetry @@ -745,9 +773,13 @@ jobs: shell: bash - name: Install poetry 🦄 - uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 + if: needs.changes.outputs.backend == 'true' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b with: - poetry-version: ${{ env.POETRY_VERSION }} + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Load Poetry Cached Libraries ⬇ id: cache-poetry @@ -852,9 +884,13 @@ jobs: shell: bash - name: Install poetry 🦄 - uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 + if: needs.changes.outputs.backend == 'true' + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b with: - poetry-version: ${{ env.POETRY_VERSION }} + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Load Poetry Cached Libraries ⬇ id: cache-poetry @@ -1211,9 +1247,12 @@ jobs: shell: bash - name: Install poetry 🦄 - uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec #v9 + uses: snok/install-poetry@93ada01c735cc8a383ce0ce2ae205a21c415379b with: - poetry-version: ${{ env.POETRY_VERSION }} + version: ${{ env.POETRY_VERSION }} + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true - name: Copy Segment write key to the package env: