Skip to content

Commit a5cd42a

Browse files
rlafurudReokyoungKimclaude
authored
Add GitHub Actions CI (frontend build + backend import/compile) (#14)
Closes #6 Co-authored-by: ReokyoungKim <zmffhem1207@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7fd48da commit a5cd42a

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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')"

0 commit comments

Comments
 (0)