-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 989 Bytes
/
ci.yml
File metadata and controls
37 lines (35 loc) · 989 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
31
32
33
34
35
36
37
# Basic CI setup: Lint with ruff, run tests with pytest
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Run linting and format
strategy:
matrix:
# Only test a subset of python versions, to limit compute
python: [python3.10, python3.11, python3.13]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv python install ${{ matrix.python }}
- run: uv run ruff check
- run: uv run ruff format
- run: uv run mypy
test:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Only test a subset of python versions, to limit compute
python: [python3.10, python3.11, python3.13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv python install ${{ matrix.python }}
- run: uv run pytest