-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
46 lines (37 loc) · 1.24 KB
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
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v5
# ``setup-uv`` switched to immutable releases at v8.0.0 and stopped
# publishing the moving ``@v8`` major tag, so pin to a specific
# immutable release. See
# https://github.com/astral-sh/setup-uv/releases/tag/v8.0.0
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install package with all extras (CPU torch)
env:
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu
run: uv sync --extra plotly --extra gui --extra docs --extra dev
- name: Ruff lint
run: uv run ruff check src tests scripts app
- name: Ruff format check
run: uv run ruff format --check src tests scripts app
- name: Run tests
run: uv run pytest -q
- name: MkDocs strict build
run: uv run mkdocs build --clean --strict