Skip to content

Commit ead8c1d

Browse files
committed
Add GitHub actions for testing, type checking and code formatting.
1 parent 6159662 commit ead8c1d

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.github/workflows/main.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
pytest:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version:
15+
- "3.13"
16+
steps:
17+
- uses: actions/checkout@v6
18+
- uses: astral-sh/setup-uv@v6
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- run: uv run pytest
22+
23+
mypy:
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
python-version:
29+
- "3.13"
30+
steps:
31+
- uses: actions/checkout@v6
32+
- uses: astral-sh/setup-uv@v6
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- run: uv run mypy
36+
37+
ruff-format:
38+
runs-on: ubuntu-latest
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
python-version:
43+
- "3.13"
44+
steps:
45+
- uses: actions/checkout@v6
46+
- uses: astral-sh/setup-uv@v6
47+
with:
48+
python-version: ${{ matrix.python-version }}
49+
- run: uv run ruff format --check
50+
51+
ruff-check:
52+
runs-on: ubuntu-latest
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
python-version:
57+
- "3.13"
58+
steps:
59+
- uses: actions/checkout@v6
60+
- uses: astral-sh/setup-uv@v6
61+
with:
62+
python-version: ${{ matrix.python-version }}
63+
- run: uv run ruff check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
*.egg-info/
44
.venv
55
.*_cache/
6+
uv.lock

0 commit comments

Comments
 (0)