From f9b2b08ea5e038f83ea5dc433f3420e2eaa92c39 Mon Sep 17 00:00:00 2001 From: nolan1999 Date: Thu, 7 Aug 2025 23:01:23 +0200 Subject: [PATCH] Use project's poetry version in github actions --- .github/workflows/code-checks.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code-checks.yaml b/.github/workflows/code-checks.yaml index 1c0a269..c5fd284 100644 --- a/.github/workflows/code-checks.yaml +++ b/.github/workflows/code-checks.yaml @@ -18,9 +18,11 @@ jobs: with: python-version: '3.11.10' - name: Install poetry - run: pip install poetry + run: | + POETRY_VERSION=$(grep -E '^requires-poetry = ' pyproject.toml | sed -E 's/requires-poetry = "(.*)"/\1/') + pip install poetry==$POETRY_VERSION - name: Install dependencies - run: python -m poetry install + run: poetry install - name: Ruff check run: poetry run ruff check . - name: Ruff format check @@ -36,9 +38,11 @@ jobs: with: python-version: '3.11.10' - name: Install poetry - run: pip install poetry + run: | + POETRY_VERSION=$(grep -E '^requires-poetry = ' pyproject.toml | sed -E 's/requires-poetry = "(.*)"/\1/') + pip install poetry==$POETRY_VERSION - name: Install dependencies - run: python -m poetry install + run: poetry install - name: configure AWS uses: aws-actions/configure-aws-credentials@v4 with: