-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (45 loc) · 1.18 KB
/
ml-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Automate time travel model release
on:
push:
branches:
- main
jobs:
data-update:
runs-on: ubuntu-20.04
env:
iot-folder: data/update
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- run: echo Update dataset with new IoT Data
train-model:
needs: data-update
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Execute model training script # run the run.py to get the latest data
run: |
python ./build/train.py
register-model:
needs: train-model
runs-on: ubuntu-20.04
env:
working-directory: build
steps:
- uses: actions/checkout@master
- name: Register model to AzureML # run the run.py to get the latest data
run: |
python ./build/register.py
deploy-service:
needs: register-model
runs-on: ubuntu-20.04
env:
working-directory: build
steps:
- uses: actions/checkout@master
- name: Register model to AzureML # run the run.py to get the latest data
run: |
python ./build/deploy.py