chore: add quality infra matrix, constraints, and test baseline fixes

This commit is contained in:
Your Name 2026-02-27 12:24:35 +08:00
parent a5682716ec
commit a726aa7fe1
8 changed files with 161 additions and 109 deletions

30
.github/workflows/pytest.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: ci
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test deps
run: |
python -m pip install --upgrade pip
pip install -c constraints.txt -e .[dev]
- name: Run tests
run: |
pytest -q