-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (27 loc) · 820 Bytes
/
ci.yml
File metadata and controls
35 lines (27 loc) · 820 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
- name: Install uv
uses: astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
env:
UV_DEFAULT_INDEX: https://pypi.org/simple
UV_INDEX_URL: https://pypi.org/simple
run: uv sync --all-extras
- name: Lint with ruff
run: uv run ruff check .
- name: Run tests
run: uv run pytest -v