Skip to content

Commit 8113ac8

Browse files
committed
add pre-commit github action
1 parent 441b627 commit 8113ac8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pre-commit.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: [ubuntu-latest]
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
12+
13+
- name: Setup Go
14+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
15+
with:
16+
go-version: 1.23.x
17+
cache: false
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
21+
with:
22+
python-version: "3.12"
23+
cache: pip
24+
25+
- name: Setup Pre-Commit
26+
run: python -m pip install pre-commit
27+
28+
- name: Run Pre-Commit
29+
run: pre-commit run --show-diff-on-failure --color=always

0 commit comments

Comments
 (0)