Skip to content

Commit 443d8dd

Browse files
committed
ci: add GitHub Actions workflow for pytest and frontend build
1 parent 3a2371e commit 443d8dd

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- run: pip install -r requirements.txt
24+
25+
- run: pytest simulator/tests/ -v
26+
27+
frontend:
28+
runs-on: ubuntu-latest
29+
defaults:
30+
run:
31+
working-directory: frontend
32+
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: actions/setup-node@v4
37+
with:
38+
node-version: "20"
39+
40+
- run: npm ci
41+
42+
- run: npm run build

0 commit comments

Comments
 (0)