Repository navigation
125 lines (101 loc) · 3.75 KB
/
Copy pathci.yml
File metadata and controls
125 lines (101 loc) · 3.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
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# ----------------------------------------------------------------------------
# Python Backend & Geodetic Core Quality Suite
# ----------------------------------------------------------------------------
python-ci:
name: Python Lint & Geodetic Verification
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-api.txt -r requirements-dev.txt
- name: Version Consistency Check
run: |
python tools/bump_version.py --check
- name: Code Quality & Linting (Ruff)
run: |
ruff check .
ruff format --check pytransdatro api tests tools
- name: Core Geodetic Parity Tests (ANCPI Benchmarks)
run: |
pytest tests/test_trans_ro.py tests/test_config.py
- name: Web API Integration & Telemetry Tests
run: |
pytest -m "not legacy_live" tests/test_api_modern.py tests/test_api_legacy.py tests/test_api_legacy_stats.py tests/test_api_rate_limiter.py tests/test_telemetry.py tests/test_feedback.py tests/test_logging.py
- name: Core Library Wheel Packaging Smoke Test
run: |
python -m build --wheel --no-isolation
python -m pip install dist/*.whl
python -c "import pytransdatro; print('PyTransDatRO wheel smoke test OK:', pytransdatro.__version__)"
# ----------------------------------------------------------------------------
# Frontend TypeScript & Vitest Suite
# ----------------------------------------------------------------------------
frontend-ci:
name: Frontend Typecheck & Vitest
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "webapp/package-lock.json"
- name: Install Frontend Dependencies
working-directory: webapp
run: npm ci
- name: TypeScript Compile & Production Bundle Build
working-directory: webapp
run: npm run build
- name: Run Vitest Unit Tests
working-directory: webapp
run: npm test
# ----------------------------------------------------------------------------
# Browser End-to-End Suite (Playwright)
# ----------------------------------------------------------------------------
e2e-ci:
name: Playwright E2E Browser Suite
runs-on: ubuntu-latest
needs: [python-ci, frontend-ci]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-api.txt
- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "webapp/package-lock.json"
- name: Install Frontend Dependencies
working-directory: webapp
run: npm ci
- name: Install Playwright Chromium Browser
working-directory: webapp
run: npx playwright install --with-deps chromium
- name: Run Playwright E2E Tests
working-directory: webapp
run: npm run test:e2e