Skip to content

Commit 0f8361d

Browse files
committed
Parametrize Poetry version in CI workflow
1 parent 3dc6b9b commit 0f8361d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
workflow_dispatch:
77

8+
env:
9+
POETRY_VERSION: "2.2.1"
10+
811
jobs:
912
build:
1013
name: Build package
@@ -16,7 +19,7 @@ jobs:
1619
with:
1720
cache: "pip"
1821
- name: Install poetry
19-
run: python3 -m pip install poetry==2.2.1
22+
run: python3 -m pip install poetry==${{ env.POETRY_VERSION }}
2023
- name: Install build dependencies
2124
run: poetry install --only build
2225
- name: Build a binary wheel and a source tarball
@@ -70,7 +73,7 @@ jobs:
7073
- name: Install poetry
7174
run: |
7275
# When upgrading poetry, remember to upgrade poetry-core in `pyproject.toml` (`build-system.requires`)
73-
python -m pip install poetry==2.2.1
76+
python -m pip install poetry==${{ env.POETRY_VERSION }}
7477
7578
- name: Configure poetry
7679
run: |

0 commit comments

Comments
 (0)