From fc8e3d5cabc5537b8fb18fc5a1401ae86dc28d70 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Nov 2025 06:39:45 +0000 Subject: [PATCH] fix(ci): install package before running prek in prek-hook job The prek-hook CI job was failing because mdformat_mkdocs wasn't installed before running prek with the test configuration. The .pre-commit-test.yaml uses local hooks that require the package to be installed. This fix adds the package installation step (using flit) before the prek installation, matching the pattern used in the tests job. Fixes: https://github.com/KyleKing/mdformat-mkdocs/actions/runs/19562228686 --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67727b7..2801b4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,6 +56,10 @@ jobs: with: python-version: 3.12 - name: Installation (deps and package) + run: | + pip install flit~=3.10.1 + flit install --deps=production --pth-file + - name: Install prek uses: j178/prek-action@v1 with: install-only: true