Skip to content

Commit a5b1346

Browse files
committed
1 parent dca3242 commit a5b1346

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version-file: ".python-version"
23+
24+
- name: Ruff lint
25+
run: uv run ruff check .
26+
27+
- name: Ruff format
28+
run: uv run ruff format --diff .
29+
30+
test:
31+
name: Run tests
32+
strategy:
33+
matrix:
34+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Install uv
40+
uses: astral-sh/setup-uv@v4
41+
42+
- name: Set up Python
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: "${{ matrix.python }}"
46+
47+
- name: Install dev dependencies
48+
run: uv sync --dev
49+
50+
- name: Run pytest
51+
run: uv run pytest

0 commit comments

Comments
 (0)