Skip to content

Commit 04fdaed

Browse files
authored
fix: update ci.yml — add data generation + model training steps before tests
1 parent bf4e515 commit 04fdaed

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,43 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
1213
- uses: actions/setup-python@v5
1314
with:
1415
python-version: '3.10'
16+
1517
- name: Install backend deps
1618
run: |
1719
pip install -r backend/requirements.txt
1820
pip install pytest pytest-cov httpx
21+
22+
- name: Generate training data
23+
run: |
24+
python ai-model/ci_generate_data.py
25+
26+
- name: Train AI model
27+
run: |
28+
python ai-model/train_model.py
29+
1930
- name: Run backend tests
2031
env:
2132
PYTHONPATH: .
2233
run: |
23-
pytest backend/tests/ --cov=backend
34+
pytest backend/tests/ --cov=backend -v
2435
2536
frontend:
2637
runs-on: ubuntu-latest
2738
steps:
2839
- uses: actions/checkout@v4
40+
2941
- uses: actions/setup-node@v4
3042
with:
3143
node-version: '20'
44+
3245
- name: Install frontend deps
3346
run: |
34-
cd frontend
35-
npm install --legacy-peer-deps
47+
cd frontend && npm install --legacy-peer-deps
48+
3649
- name: Build frontend
3750
run: |
38-
cd frontend
39-
npm run build
51+
cd frontend && npm run build

0 commit comments

Comments
 (0)