Skip to content

Commit 25ed19d

Browse files
committed
ci: pytest (3.10 + 3.14) + sdist build gate on push/PR
1 parent 87ee355 commit 25ed19d

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: ["3.10", "3.14"] # claimed floor (requires-python >=3.10) + proven ceiling
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python }}
20+
- name: Install
21+
run: pip install -e ".[dev]" || pip install -e . pytest
22+
- name: Test
23+
run: python -m pytest -q
24+
25+
build:
26+
# sdist/wheel must pack cleanly — catches packing regressions (stray symlinks,
27+
# junk dirs) in CI instead of on release day.
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.12"
34+
- name: Build sdist + wheel
35+
run: pip install build && python -m build

0 commit comments

Comments
 (0)