File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main, dev]
6+ pull_request :
7+ branches : [main, dev]
8+
9+ jobs :
10+ frontend :
11+ name : Frontend build
12+ runs-on : ubuntu-latest
13+ defaults :
14+ run :
15+ working-directory : frontend
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : npm
22+ cache-dependency-path : frontend/package-lock.json
23+ - run : npm ci
24+ - run : npm run build
25+
26+ backend :
27+ name : Backend import & compile
28+ runs-on : ubuntu-latest
29+ defaults :
30+ run :
31+ working-directory : backend
32+ env :
33+ # dummy key so module import (which builds no client) is safe in CI
34+ OPENAI_API_KEY : sk-ci-dummy
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : actions/setup-python@v5
38+ with :
39+ python-version : ' 3.11'
40+ - run : pip install -r requirements.txt
41+ - name : Compile all modules
42+ run : python -m compileall -q .
43+ - name : Import API app
44+ run : python -c "import app; print('app import OK')"
You can’t perform that action at this time.
0 commit comments