From 1f2413e2b0d4828facbd3ff6902a6e6b0617ef6f Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Mon, 7 Sep 2026 14:08:49 +0300 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01Bk6CFfaN3YJFZ6yztQja7D --- .github/workflows/pre-commit.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 5105591..a3d8ce0 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -15,12 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Install poetry + run: pipx install poetry==$POETRY_VERSION - name: Set up Python uses: actions/setup-python@v4 with: python-version: '3.14' - - name: Install poetry - run: pipx install poetry==$POETRY_VERSION + cache: "poetry" - name: Install pre-commit run: poetry install - name: Run pre-commit