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 b56edd1
Showing 1 changed file with 51 additions and 12 deletions.
63 changes: 51 additions & 12 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 @@ -270,7 +274,17 @@ jobs:
echo "POETRY_VERSION=$(scripts/poetry-version.sh)" >> $GITHUB_ENV
shell: bash

- name: Install poetry 🦄
- name: Install poetry (Ubuntu) 🦄
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 (Windows) 🦄
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 @@ -426,7 +440,17 @@ jobs:
echo "POETRY_VERSION=$(scripts/poetry-version.sh)" >> $GITHUB_ENV
shell: bash

- name: Install poetry 🦄
- name: Install poetry (Ubuntu) 🦄
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 (Windows) 🦄
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 @@ -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 b56edd1

Please sign in to comment.