add CI workflows

This commit is contained in:
X-iZhang
2026-02-03 22:24:32 +00:00
parent 7d4b8e6557
commit e725fb08e2
14 changed files with 82 additions and 28 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Test
on:
push:
branches: ["main"]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run pytest
run: pytest -v