Skip to content

Commit 8059dfe

Browse files
committed
Install pre-commit hooks in the install pre-commit phase
1 parent 8407aea commit 8059dfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/tests-neptune-api-codegen.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ jobs:
3232

3333
- name: Install pre-commit
3434
run: |
35-
python -m pip install pre-commit
35+
python -m pip install pre-commit &&
36+
pre-commit install-hooks
3637
3738
- name: Run codegen and verify no changes
3839
run: |
3940
cd src &&
4041
python -m neptune_api_codegen.cli --no-update-api-spec --update &&
41-
( pre-commit run --all-files || true ; ) &&
42+
( pre-commit run --all-files >/dev/null || true ; ) &&
43+
pre-commit run --all-files &&
4244
[ -z "$(git status --porcelain)" ] &&
4345
echo "✅ Repository is clean after regenerating neptune_api code"

0 commit comments

Comments
 (0)