Skip to content

Commit

Permalink
Use different GitHub actions to install poetry on ubuntu and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanZRasa committed Jan 8, 2025
1 parent fb5308a commit 0b8bc40
Showing 1 changed file with 50 additions and 11 deletions.
61 changes: 50 additions & 11 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0b8bc40

Please sign in to comment.