Skip to content

Commit 1b679fd

Browse files
added train model action
1 parent c40410d commit 1b679fd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: model-training
2+
on: [push]
3+
jobs:
4+
train-model:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout Repository
8+
uses: actions/checkout@v3
9+
- name: Setup Python und install requirements
10+
uses: actions/setup-python@v4
11+
with:
12+
python-version: "3.8"
13+
- run: pip install -r requirements.txt
14+
- name: Train model
15+
run: python src/train.py
16+
- name: Upload trained model
17+
uses: actions/upload-artifact@v3
18+
with:
19+
name: regressor_mpg.pickle
20+
path: data/models/regressor_mpg.pickle

0 commit comments

Comments
 (0)