-
-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (64 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
79 lines (64 loc) · 2.13 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: CI
on:
push:
branches:
# Release branches: run QA on every push (e.g. 0.1.4)
- "[0-9]*.[0-9]*.[0-9]*"
- main
pull_request:
branches:
- "[0-9]*.[0-9]*.[0-9]*"
- main
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
qa:
name: QA gate (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-latest deliberately omitted: ubuntu-latest covers the POSIX/Unix
# surface and windows-latest covers the non-POSIX surface; macOS is POSIX-like,
# so it is unlikely to surface issues ubuntu does not, and GitHub's macOS
# runners bill far more CI minutes. Revisit if a macOS-specific defect appears.
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: uv sync
- name: Lint
run: uv run poe lint
- name: Type check
run: uv run poe type
- name: Rule lint
run: uv run poe test_lint
- name: Unit tests
run: uv run poe test_unit
- name: Integration tests
run: uv run poe test_integration
# Smoke suite is hermetic: tests/smoke/conftest.py forces offline
# diagnostics (no network), HOME is isolated, and tests that can only
# be observed via the mapper model declare `requires_model` so they
# skip cleanly on the model-free runner.
- name: Smoke tests
run: uv run poe test_smoke
# Live-path regression — hits the real platform host, so it stays out of the
# gated QA matrix (offline CI must remain green when the edge is flaky).
# Manual via the Actions tab; the assertion is the new-user activation hop.
live:
name: Live activation path
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: uv sync
- name: Live network tests
run: uv run poe test_live