-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (28 loc) · 861 Bytes
/
Copy pathci.yml
File metadata and controls
30 lines (28 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: test (${{ matrix.os }} / py${{ matrix.python }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python: ["3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@v6
# setup-python provides the interpreter on PATH; --system installs into it,
# so the very same `python` runs the tests (no managed-vs-system mismatch).
- name: Install (with dev extras)
run: uv pip install --system -e ".[dev]"
- name: Run tests
run: python -m pytest -q