Skip to content

Commit f98125a

Browse files
Add pre-commit check to CI
1 parent dd7df90 commit f98125a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/checkcode.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Pre-commit Hooks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
checkcode:
17+
runs-on: ubuntu-latest
18+
env:
19+
SKIP: no-commit-to-branch
20+
steps:
21+
- uses: actions/checkout@v6
22+
- name: Run pre-commit
23+
run: |
24+
./utilities/set_up_dev_env.sh
25+
source ./utilities/python-venv/bin/activate
26+
pre-commit clean
27+
pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)