Add the pre-commit check to the CI. (#18)

* Add the pre-commit check to the CI.

* CI tweaks.

* Add the pre-commit.
This commit is contained in:
Laurent Mazare
2025-06-26 14:41:57 +02:00
committed by GitHub
parent 7b5a01dfba
commit 96eef33c4c
2 changed files with 45 additions and 0 deletions

17
.github/workflows/precommit.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: precommit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run_precommit:
name: Run precommit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/moshi_build
- run: |
. env/bin/activate
bash .git/hooks/pre-commit