Skip to content

Commit 783efad

Browse files
committed
ci: add Python test and build workflow
1 parent f8c2a16 commit 783efad

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
test:
11+
name: Test Python ${{ matrix.python-version }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Set up uv
28+
uses: astral-sh/setup-uv@v8.1.0
29+
30+
- name: Run tests
31+
run: uv run --extra dev pytest -q
32+
33+
build:
34+
name: Build package
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Check out repository
38+
uses: actions/checkout@v4
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v6
42+
with:
43+
python-version: "3.11"
44+
45+
- name: Set up uv
46+
uses: astral-sh/setup-uv@v8.1.0
47+
48+
- name: Build wheel and sdist
49+
run: uv build
50+

0 commit comments

Comments
 (0)