-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
61 lines (50 loc) · 1.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
python:
name: Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv sync
# The repository currently has ~65 pre-existing ruff violations.
# Lint is reported but not enforced until that backlog is cleared;
# tests are the blocking gate. Contributions welcome — see CONTRIBUTING.md.
- name: Lint (ruff, advisory)
run: uv run ruff check .
continue-on-error: true
# Pure-Python tests. These need no cloud credentials and no built frontend.
- name: Run tests
run: uv run pytest -q tests/
frontend:
name: Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: ui/package-lock.json
- name: Install dependencies
working-directory: ui
run: npm ci
- name: Type-check and build
working-directory: ui
run: npm run build
# NOTE: ui/tests/ is deliberately not run here. Those tests need
# ui/data/analysis.json — pipeline output that is gitignored and never
# ships — and ui/tests/test_ui.py additionally needs Playwright browsers.
# Neither is available on a fresh clone. Run them locally after a full
# pipeline run: `uv run pytest ui/tests/`. Making these runnable in CI
# (via committed fixtures) would be a welcome contribution.