Skip to content

Commit fc8e3d5

Browse files
committed
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
1 parent 0154c54 commit fc8e3d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
with:
5757
python-version: 3.12
5858
- name: Installation (deps and package)
59+
run: |
60+
pip install flit~=3.10.1
61+
flit install --deps=production --pth-file
62+
- name: Install prek
5963
uses: j178/prek-action@v1
6064
with:
6165
install-only: true

0 commit comments

Comments
 (0)