-
-
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
- 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