-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
74 lines (61 loc) · 1.75 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
name: CI
# Verification CI: runs the backend test suite touched by the convective-setup
# work and builds the frontend. Safe to run on demand; no deploys or package
# publishing happen here.
on:
workflow_dispatch:
push:
branches: [master]
paths:
- 'backend/**'
- 'src/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
- 'vite.config.ts'
- '.github/workflows/ci.yml'
pull_request:
branches: [master]
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
backend-tests:
name: Backend tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install backend dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install -r backend/requirements.txt
python -m pip install pytest
- name: Ensure runtime hazard models
run: python -m backend.ml.ensure_runtime_models
- name: Run merged-outlook and deployable-pipeline tests
run: |
python -m pytest -q \
backend/tests/test_merged_outlook.py \
backend/tests/test_deployable_outlook_pipeline.py
frontend-build:
name: Frontend build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out source
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install frontend dependencies
run: npm ci
- name: Type-check and build
run: npm run build