fix: ci pre-commit poetry env

Install poetry before setup-python and enable the poetry cache so
setup-python activates the 3.14 interpreter. With virtualenvs.create=false
poetry otherwise installs into the runner's system Python 3.12 and fails
uninstalling Debian dist-packages.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bk6CFfaN3YJFZ6yztQja7D
This commit is contained in:
Alexander MyasoedovandClaude Fable 5.1 committed 2026-09-07 14:08:49 +03:00
1 parent a49706457c
commit 1f2413e2b0
1 file changed
+3 -2
+3 -2
View File
@@ -15,12 +15,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry==$POETRY_VERSION
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.14' python-version: '3.14'
- name: Install poetry cache: "poetry"
run: pipx install poetry==$POETRY_VERSION
- name: Install pre-commit - name: Install pre-commit
run: poetry install run: poetry install
- name: Run pre-commit - name: Run pre-commit