Skip to content

Commit 6a2100b

Browse files
committed
Fixed GitHub workflows
1 parent 5d0d3d6 commit 6a2100b

File tree

2 files changed

+32
-47
lines changed

2 files changed

+32
-47
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,35 @@ jobs:
6666
with:
6767
ocaml-compiler: 5
6868
- uses: ocaml/setup-ocaml/lint-opam@v3
69+
70+
hooks:
71+
runs-on: ubuntu-latest
72+
73+
steps:
74+
# Set up Python with built-in pip caching
75+
- name: Set up Python
76+
id: python
77+
uses: actions/setup-python@v6
78+
with:
79+
python-version: "3.13"
80+
81+
# Cache pre-commit’s virtual envs + hook repos
82+
- name: Cache pre-commit envs
83+
uses: actions/cache@v4
84+
with:
85+
path: ~/.cache/pre-commit
86+
key: >
87+
${{ format('pre-commit-{0}-{1}',
88+
steps.python.outputs.python-version,
89+
hashFiles('.pre-commit-config.yaml')) }}
90+
91+
# Install the tool itself
92+
- name: Install pre-commit
93+
run: |
94+
pip install --upgrade pip pre-commit
95+
pre-commit install
96+
97+
# Run all hooks not already handled by other workflows
98+
- name: Run hooks
99+
run: |
100+
pre-commit run --all-files --show-diff-on-failure --color=always

.github/workflows/pre-commit.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)