Skip to content

Commit 12f7dc9

Browse files
ppradyothclaude
andcommitted
Add GitHub Actions CI workflow
Runs pytest (backend) and npm build (frontend) on every push and PR to main. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 93badd1 commit 12f7dc9

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
backend:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: backend
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install backend dependencies
25+
run: pip install -r requirements.txt
26+
27+
- name: Run backend tests
28+
env:
29+
ENABLE_AI_FALLBACK: "true"
30+
run: pytest
31+
32+
frontend:
33+
runs-on: ubuntu-latest
34+
defaults:
35+
run:
36+
working-directory: frontend
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
41+
- name: Set up Node
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: "22"
45+
cache: npm
46+
cache-dependency-path: frontend/package-lock.json
47+
48+
- name: Install frontend dependencies
49+
run: npm install
50+
51+
- name: Build frontend
52+
run: npm run build
53+

0 commit comments

Comments
 (0)