From 0ad193811569026b45a2ca33dbcb0ce06b675247 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo <fabio.caccamo@gmail.com> Date: Thu, 21 Sep 2023 15:04:43 +0200 Subject: [PATCH] Use `pre-commit` GitHub action. --- .github/workflows/python-app.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 758a2f2..5be9025 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,8 +29,9 @@ jobs: python -m pip install -r requirements.txt python -m pip install -r requirements-dev.txt - name: Run pre-commit - run: | - pre-commit run --all-files --verbose --show-diff-on-failure + uses: pre-commit/action@v3.0.0 + with: + extra_args: --all-files --verbose --show-diff-on-failure - name: Test with pytest run: | pytest -vv