Skip to content

Commit fc96c61

Browse files
committed
github: add workflows to check formatting and typecheck
1 parent 52e06fd commit fc96c61

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/check-format.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ruff
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v3
17+
with:
18+
enable-cache: true
19+
20+
- name: Setup Python
21+
run: uv python install
22+
23+
- name: Install dependencies
24+
run: |
25+
uv pip install ruff
26+
uv pip install -e ".[dev]"
27+
28+
- name: Run ruff format check
29+
run: uv run ruff check .

.github/workflows/check-types.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: typecheck
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
typecheck:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v3
17+
with:
18+
enable-cache: true
19+
20+
- name: Setup Python
21+
run: uv python install
22+
23+
- name: Install dependencies
24+
run: |
25+
uv pip install pyright
26+
uv pip install -e ".[dev]"
27+
28+
- name: Run pyright
29+
run: uv run pyright

0 commit comments

Comments
 (0)