Skip to content

Commit 819882f

Browse files
authored
Add CI workflow (#8)
* add ci workflow * fixup
1 parent 46ed9dd commit 819882f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/check.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Python Checks
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
lint-and-typecheck:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- name: Install uv
25+
run: |
26+
curl -LsSf https://astral.sh/uv/0.9.7/install.sh | sh
27+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
28+
29+
- name: Install dependencies
30+
run: |
31+
uv sync
32+
33+
- name: Run Ruff (lint + format check)
34+
run: |
35+
uv run ruff check .
36+
uv run ruff format --check .
37+
38+
- name: Run Mypy (type check)
39+
run: |
40+
uv run mypy .

0 commit comments

Comments
 (0)