From 1a6e7a17b1ae3b54dd581b25da90c00d7e2cbb48 Mon Sep 17 00:00:00 2001 From: Mehdi ABAAKOUK Date: Wed, 24 Jun 2026 14:05:01 +0200 Subject: [PATCH] chore(deps): bump poetry from 2.2.1 to 2.4.1 poetry >=2.3 requires Python >=3.10, so installing poetry 2.4.1 under the matrix interpreter breaks the 3.9 leg. Install poetry under a fixed 3.12 and point the project venv at the matrix Python via `poetry env use`, so the library keeps being tested on every matrix version (including 3.9). Supersedes the Dependabot PR #281, whose protected branch cannot carry the companion CI change. Change-Id: I8544072b5701c679eff06403773212901f97baa2 --- .github/workflows/ci.yaml | 8 ++++++++ requirements-poetry.txt | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2e19e6..de3c74f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,10 +18,18 @@ jobs: steps: - uses: actions/checkout@v7.0.0 - uses: actions/setup-python@v6.2.0 + id: target-python with: python-version: "${{ matrix.python-version }}" + # poetry >=2.3 requires Python >=3.10, so install it under a fixed + # interpreter and target the matrix Python via `poetry env use`. This keeps + # the project tested on every matrix version (including 3.9). + - uses: actions/setup-python@v6.2.0 + with: + python-version: "3.12" - run: | pip install -r requirements-poetry.txt + poetry env use "${{ steps.target-python.outputs.python-path }}" poetry sync poetry run poe linters poetry run poe test diff --git a/requirements-poetry.txt b/requirements-poetry.txt index 6bd2fa4..c3973d4 100644 --- a/requirements-poetry.txt +++ b/requirements-poetry.txt @@ -1 +1 @@ -poetry==2.2.1 +poetry==2.4.1