-
-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (46 loc) · 1.47 KB
/
Copy pathci.yml
File metadata and controls
57 lines (46 loc) · 1.47 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
name: QuantIQ CI/CD Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# Job 1: Validate Frontend Code quality, Type safety, and Build verification
frontend-ci:
name: Frontend Quality & Build Verification
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install Frontend Dependencies
run: npm ci
working-directory: frontend
- name: Verify TypeScript Compilation & Linting
run: npm run build
working-directory: frontend
# Job 2: Validate Backend Linting, Format Checks, and Model Inferences
backend-ci:
name: Backend Quality & Ruff Validation
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv Package Manager
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install Dependencies via uv
run: uv sync --frozen
- name: Run Ruff Linter
run: uv run ruff check .
continue-on-error: true # Warning mode for initial transition
- name: Verify Backend Entry Point builds
run: uv run python -c "import main"