Skip to content

Commit f25ff54

Browse files
committed
chore(ci): use variable for poetry version
Signed-off-by: Fatih Acar <[email protected]>
1 parent 2be842e commit f25ff54

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
python-version: "3.12"
167167
- name: "Setup Python environment"
168168
run: |
169-
pipx install poetry==2.1
169+
pipx install poetry==${{ vars.POETRY_VERSION }}
170170
poetry config virtualenvs.create true --local
171171
poetry env use 3.12
172172
- name: "Install dependencies"
@@ -230,7 +230,7 @@ jobs:
230230
python-version: ${{ matrix.python-version }}
231231
- name: "Setup environment"
232232
run: |
233-
pipx install poetry==2.1 --python python${{ matrix.python-version }}
233+
pipx install poetry==${{ vars.POETRY_VERSION }} --python python${{ matrix.python-version }}
234234
poetry config virtualenvs.create true --local
235235
pip install invoke toml codecov
236236
- name: "Install Package"
@@ -283,7 +283,7 @@ jobs:
283283
echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV
284284
- name: "Setup environment"
285285
run: |
286-
pipx install poetry==2.1
286+
pipx install poetry==${{ vars.POETRY_VERSION }}
287287
poetry config virtualenvs.create true --local
288288
pip install invoke toml codecov
289289
- name: "Install Package"
@@ -356,7 +356,7 @@ jobs:
356356

357357
# - name: "Setup environment"
358358
# run: |
359-
# pipx install poetry==2.1
359+
# pipx install poetry==${{ vars.POETRY_VERSION }}
360360
# poetry config virtualenvs.create true --local
361361
# pip install invoke toml codecov
362362

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: "Install Poetry"
4242
uses: "snok/install-poetry@v1"
4343
with:
44-
version: 1.8.5
44+
version: ${{ vars.POETRY_VERSION }}
4545
virtualenvs-create: true
4646
virtualenvs-in-project: true
4747
installer-parallel: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: "Install Poetry"
3131
uses: "snok/install-poetry@v1"
3232
with:
33-
version: 1.8.5
33+
version: ${{ vars.POETRY_VERSION }}
3434
virtualenvs-create: true
3535
virtualenvs-in-project: true
3636
installer-parallel: true

0 commit comments

Comments
 (0)