-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (43 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
48 lines (43 loc) · 1.26 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
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
# Match the Modal test image (modal_image.py): CPython 3.12, installed
# from the standalone torchwright/uv.lock. UV_LOCKED makes every sync
# assert that lock is current (the same drift check-modal-lock guards).
UV_PYTHON: "3.12"
UV_LOCKED: "1"
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Sync dev environment
run: uv sync
- name: Lint
run: make lint
# Fast end-to-end signal on every push: compile an example on CPU,
# generate, assert the output. The full suite is far too slow for
# per-push CI (~1h on a 2-core runner) — it runs on Modal during
# development (make test) and weekly via full-tests.yml.
smoke:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Sync dev environment
run: uv sync
- name: Compile-and-generate smoke
run: uv run --no-sync python -m scripts.ci_smoke