From 565ddb61f7b638dcec6ca4a0288ab182e86ce320 Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Tue, 20 Jan 2026 21:30:57 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20pre-commit=20workflow?= =?UTF-8?q?=20(#2096)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pre-commit.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 154cd8c..ed5cde7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -37,6 +37,9 @@ jobs: # To be able to commit it needs the head branch of the PR, the remote one ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 + - uses: actions/setup-node@v6 + with: + node-version: lts/* - name: Set up Python uses: actions/setup-python@v6 with: @@ -48,14 +51,14 @@ jobs: requirements**.txt pyproject.toml uv.lock - - name: Install Dependencies - run: uv sync - working-directory: backend + - name: Install backend dependencies + run: uv sync --all-packages + - name: Install frontend dependencies + run: npm ci - name: Run prek - pre-commit id: precommit run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure continue-on-error: true - working-directory: backend - name: Commit and push changes if: env.HAS_SECRETS == 'true' run: |