-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 701 Bytes
/
Copy pathprecommit.yml
File metadata and controls
30 lines (23 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: precommit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Set up Python
run: uv python install 3.14
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
with:
node-version: "20"
- name: Install dependencies
run: uv sync --group ci
- name: Run pre-commit
run: uv run pre-commit run --all-files