Skip to content

Commit 417fc99

Browse files
Ryanf55tridge
authored andcommitted
Enfore pre-commit in CI
Signed-off-by: Ryan Friedman <[email protected]>
1 parent cf0de62 commit 417fc99

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: pre-commit
3+
4+
on: [push]
5+
6+
concurrency:
7+
group: ci-${{github.workflow}}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu:22.04
13+
strategy:
14+
fail-fast: false # don't cancel if a job from the matrix fails
15+
# steps:
16+
# # git checkout the PR
17+
# - uses: actions/checkout@v4
18+
# with:
19+
# submodules: 'recursive'
20+
# - name: Install pre-commit tool
21+
# run: |
22+
# apk update
23+
# apk add python3 py3-pip --no-cache
24+
# python3 -m pip install pre-commit
25+
# - name: Install pre-commit in repo
26+
# run: |
27+
# pre-commit install
28+
# - name: Run pre-commit
29+
# run: |
30+
# pre-commit run --all-files --verbose --show-diff-on-failure
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-python@v3
34+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)