-
-
Notifications
You must be signed in to change notification settings - Fork 4
332 lines (261 loc) · 9.84 KB
/
Copy pathci.yml
File metadata and controls
332 lines (261 loc) · 9.84 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
name: CI
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
backend:
runs-on: ubuntu-latest
env:
UV_PYTHON: ${{ matrix.python-version }}
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: |
editor/package-lock.json
landing/package-lock.json
- name: Install editor
working-directory: editor
run: npm ci
- name: Install landing
working-directory: landing
run: npm ci
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev --python ${{ matrix.python-version }}
- name: Verify Python ${{ matrix.python-version }}
run: |
uv run python -c "import sys; expected='${{ matrix.python-version }}'; actual=f'{sys.version_info.major}.{sys.version_info.minor}'; print(sys.version); assert actual == expected, (actual, expected)"
- name: Run root clean gate
run: uv run python -X utf8 tests/run.py gate root-clean
- name: Run docs gate
run: uv run python -X utf8 tests/run.py gate docs
- name: Run architecture boundary gate
run: uv run python -X utf8 tests/run.py gate architecture-boundary
- name: Verify PRD evaluation contract
if: matrix.python-version == '3.12'
run: uv run python -X utf8 tests/run.py gate evaluation-contract
- name: Observe plan quality bootstrap
if: matrix.python-version == '3.12'
continue-on-error: true
run: uv run python -X utf8 tests/run.py gate plan-quality
- name: Run backend gate
run: uv run python -X utf8 tests/run.py gate backend
- name: Run learning evidence contract
if: matrix.python-version == '3.12'
run: uv run python -X utf8 tests/run.py gate learning-evidence-contract
- name: Verify removed learning concepts
if: matrix.python-version == '3.12'
run: uv run python -X utf8 tests/run.py gate removed-learning-concepts
- name: Run learning efficacy report contract
if: matrix.python-version == '3.12'
run: uv run python -X utf8 tests/run.py gate learning-efficacy-report
- name: Run curriculum quality matrix
if: matrix.python-version == '3.12'
timeout-minutes: 20
run: uv run python -X utf8 tests/run.py gate curriculum-quality-matrix
- name: Verify path promotion readiness
if: matrix.python-version == '3.12'
timeout-minutes: 20
run: uv run python -X utf8 tests/run.py gate path-promotion-readiness
- name: Verify repository simplification
if: matrix.python-version == '3.12'
timeout-minutes: 10
run: uv run python -X utf8 tests/run.py gate repository-simplification
- name: Run widget-bridge gate
run: uv run python -X utf8 tests/run.py gate widget-bridge
- name: Run app-runtime gate
run: uv run python -X utf8 tests/run.py gate app-runtime
- name: Run mobile-layout gate
run: uv run python -X utf8 tests/run.py gate mobile-layout
editor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: editor/package-lock.json
- name: Install
working-directory: editor
run: npm ci
- name: Build
run: python -X utf8 tests/run.py gate editor-build
landing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: landing/package-lock.json
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install
working-directory: landing
run: npm ci
- name: Build
run: python -X utf8 tests/run.py gate landing-build
experience:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
CODARO_FRONTEND_BUILD_REUSE: "1"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install Python dependencies
run: uv sync --extra dev --python 3.12
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: |
editor/package-lock.json
landing/package-lock.json
- name: Install editor
working-directory: editor
run: npm ci
- name: Install landing
working-directory: landing
run: npm ci
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('uv.lock') }}
- name: Install locked browser matrix
timeout-minutes: 15
run: uv run python -m playwright install --with-deps chromium firefox webkit
- name: Verify visual assets
# 2코어 러너의 firefox/webkit 페이지 로드가 느려 instructional 매트릭스가
# 15분을 넘길 수 있다. 실패가 아니라 속도 문제라 예산만 넉넉히 둔다.
timeout-minutes: 30
run: uv run python -X utf8 tests/run.py gate visual-assets
- name: Verify Astryx design system
timeout-minutes: 15
run: uv run python -X utf8 tests/run.py gate design-system-contract
- name: Verify theme runtime matrix
timeout-minutes: 25
run: uv run python -X utf8 tests/run.py gate theme-runtime-browser
- name: Verify visual accessibility matrix
timeout-minutes: 25
run: uv run python -X utf8 tests/run.py gate visual-accessibility-browser
- name: Verify direct learning method
timeout-minutes: 15
run: uv run python -X utf8 tests/run.py gate learning-method
- name: Verify Web learning
timeout-minutes: 25
run: uv run python -X utf8 tests/run.py gate web-learning
- name: Verify public landing
timeout-minutes: 25
run: uv run python -X utf8 tests/run.py gate landing-public
- name: Verify Local Studio
timeout-minutes: 30
run: uv run python -X utf8 tests/run.py gate local-studio-browser
- name: Verify Run and Local states
timeout-minutes: 15
run: uv run python -X utf8 tests/run.py gate run-local-state-browser
- name: Verify full product experience
timeout-minutes: 30
run: uv run python -X utf8 tests/run.py gate product-experience-browser
- name: Verify Astryx dual-theme journey
timeout-minutes: 45
run: uv run python -X utf8 tests/run.py gate astryx-journey
launcher:
# 다운로드 엔진(타임아웃/재시도/resume mock 테스트)과 provision 경로를 실제 배포 타깃인
# Windows를 포함한 3개 OS에서 검증한다. "내 로컬은 되는데 다른 환경은 터진다"를 CI에서 막는다.
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install Linux WebView dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
launcher/target/
key: cargo-${{ runner.os }}-${{ hashFiles('launcher/Cargo.lock') }}
- name: Check (no build)
run: python -X utf8 tests/run.py gate launcher-check
- name: Run tests
run: python -X utf8 tests/run.py gate launcher-test
webview2-evergreen:
runs-on: windows-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install Python dependencies
run: uv sync --extra dev --python 3.12
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: editor/package-lock.json
- name: Install editor
working-directory: editor
run: npm ci
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache WebView2 smoke cargo build
uses: actions/cache@v4
with:
path: output/test-runner/product-browser-webview2-evergreen/cargo-target/
key: webview2-cargo-${{ runner.os }}-${{ hashFiles('launcher/Cargo.lock') }}
- name: Verify native WebView2 product
run: uv run python -X utf8 tests/run.py gate product-browser-webview2-evergreen