Skip to content

Commit 624352c

Browse files
committed
add ci
1 parent 7cd66ef commit 624352c

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.py"
7+
- pyproject.toml
8+
- uv.lock
9+
- .github/workflows/ci.yml
10+
11+
jobs:
12+
lint_and_typecheck:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v4
18+
19+
- name: install uv
20+
uses: astral-sh/setup-uv@v6
21+
with:
22+
enable-cache: true
23+
cache-dependency-glob: "uv.lock"
24+
25+
- name: uv sync
26+
run: uv sync --frozen --all-extras --dev
27+
28+
- name: format
29+
run: uv run ruff format --check
30+
31+
- name: lint
32+
run: uv run ruff check
33+
34+
- name: typecheck
35+
run: uv run pyright

0 commit comments

Comments
 (0)