Skip to content

Commit 0cf64f5

Browse files
committed
Add pre-commit workflow
1 parent 28baf3f commit 0cf64f5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
permissions: read-all
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-24.04
13+
timeout-minutes: 30
14+
steps:
15+
- uses: actions/checkout@v4.2.2
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
- name: Version of clang-format
20+
run: |
21+
clang-format --version
22+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)