Skip to content

Commit 1e10254

Browse files
committed
Add CI for pre-commit
1 parent 9086a9a commit 1e10254

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pre-commit.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pre-commit
2+
on: [push, pull_request]
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python 3.8
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.8'
17+
- name: Install pre-commit
18+
run: |
19+
pip install pre-commit
20+
pre-commit install
21+
- name: Run pre-commit
22+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)