CI: Fix pre-commit GHA job 83/134483/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 4 May 2023 17:44:26 +0000 (10:44 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 4 May 2023 17:45:30 +0000 (10:45 -0700)
Tox does not have a pre-commit environment. I would expect tox to fail,
but it does not, it just passes. Silly tox.

Change-Id: I41dd2f5aa951696432aa7f44c7e73bc331e1b866
Issue-ID: CIMAN-33
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
.github/workflows/gerrit-verify.yaml

index 31b81ab..ea754d8 100644 (file)
@@ -92,7 +92,7 @@ jobs:
         with:
           python-version: "3.11"
       - name: Run static analysis and format checkers
-        run: pipx run tox -e pre-commit
+        run: pipx run pre-commit run --all-files --show-diff-on-failure
 
   jjb-validation:
     needs: prepare