From 3a636090a41faae022eac0c217da6977941685e6 Mon Sep 17 00:00:00 2001 From: Florian Maas Date: Mon, 15 Jul 2024 08:00:35 +0200 Subject: [PATCH] run pre-commit hooks in ci/cd --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7162dad..ec71ec5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,9 +31,15 @@ jobs: key: poetry-${{ hashFiles('**/poetry.lock') }} restore-keys: | poetry-${{ hashFiles('**/poetry.lock') }} + - name: Install dependencies run: poetry install if: steps.cache.outputs.cache-hit != 'true' + - name: Run pre-commit hooks + run: | + pre-commit install + pre-commit run -a + - name: Run tests with pytest run: poetry run pytest