Skip to content

Commit bbcae8a

Browse files
authored
Create CI workflow for backend and frontend
Set up CI workflow for backend and frontend testing.
1 parent c16fca6 commit bbcae8a

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
backend:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.10'
15+
- name: Install backend deps
16+
run: |
17+
pip install -r requirements.txt
18+
- name: Run backend tests
19+
run: |
20+
cd backend
21+
pytest --cov=backend
22+
23+
frontend:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: '18'
30+
- name: Install frontend deps
31+
run: |
32+
cd frontend
33+
npm install
34+
- name: Run frontend tests
35+
run: |
36+
cd frontend
37+
npm test -- --watch=false

0 commit comments

Comments
 (0)