generated from block/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # 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