Skip to content

Commit 5c72e0c

Browse files
committed
pre-commit test
1 parent 57b3be3 commit 5c72e0c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Pre-commit
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
run-pre-commit:
11+
name: Pre-commit Check
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.x'
20+
21+
- name: Install pre-commit
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pre-commit
25+
26+
- name: Run pre-commit hooks
27+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)