Skip to content

Commit 6e869a1

Browse files
committed
Use project's poetry version in github actions
1 parent 5b9f5ff commit 6e869a1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/code-checks.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.11.10'
20-
- name: Install poetry
21-
run: pip install poetry
20+
run: |
21+
POETRY_VERSION=$(grep -E '^requires-poetry = ' pyproject.toml | sed -E 's/requires-poetry = "(.*)"/\1/')
22+
pip install poetry==$POETRY_VERSION
2223
- name: Install dependencies
2324
run: python -m poetry install
2425
- name: Ruff check
@@ -36,7 +37,9 @@ jobs:
3637
with:
3738
python-version: '3.11.10'
3839
- name: Install poetry
39-
run: pip install poetry
40+
run: |
41+
POETRY_VERSION=$(grep -E '^requires-poetry = ' pyproject.toml | sed -E 's/requires-poetry = "(.*)"/\1/')
42+
pip install poetry==$POETRY_VERSION
4043
- name: Install dependencies
4144
run: python -m poetry install
4245
- name: configure AWS

0 commit comments

Comments
 (0)