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