Skip to content

Commit c085fdf

Browse files
committed
add pre-commit workflow
1 parent b76b3c7 commit c085fdf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: .github/workflows/pre-commit.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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-latest
13+
timeout-minutes: 30
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/[email protected]
17+
18+
- name: Set up python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.12'
22+
23+
- uses: BSFishy/pip-action@v1
24+
with:
25+
packages: |
26+
pylint
27+
28+
- name: Version of clang-format
29+
run: |
30+
clang-format --version
31+
32+
- name: Run pre-commit checks
33+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)