👷 Update pre-commit workflow (#2096)

This commit is contained in:
Alejandra
2026-01-20 21:30:57 +01:00
committed by GitHub
parent a42f89b892
commit 565ddb61f7

View File

@@ -37,6 +37,9 @@ jobs:
# To be able to commit it needs the head branch of the PR, the remote one # To be able to commit it needs the head branch of the PR, the remote one
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: lts/*
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v6 uses: actions/setup-python@v6
with: with:
@@ -48,14 +51,14 @@ jobs:
requirements**.txt requirements**.txt
pyproject.toml pyproject.toml
uv.lock uv.lock
- name: Install Dependencies - name: Install backend dependencies
run: uv sync run: uv sync --all-packages
working-directory: backend - name: Install frontend dependencies
run: npm ci
- name: Run prek - pre-commit - name: Run prek - pre-commit
id: precommit id: precommit
run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure run: uvx prek run --from-ref origin/${GITHUB_BASE_REF} --to-ref HEAD --show-diff-on-failure
continue-on-error: true continue-on-error: true
working-directory: backend
- name: Commit and push changes - name: Commit and push changes
if: env.HAS_SECRETS == 'true' if: env.HAS_SECRETS == 'true'
run: | run: |