Skip to content

Commit 2a1100e

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

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
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
28+
1629
build:
1730
runs-on: ubuntu-latest
1831
container:

0 commit comments

Comments
 (0)