-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) Β· 1.05 KB
/
run_data_pipeline.yml
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
name: Run data pipeline
on:
workflow_run:
workflows: ["Increase Data Version"]
types:
- completed
workflow_dispatch:
jobs:
run-dvc-pipeline:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-box ensure pandas pathlib scikit-learn dagshub mlflow numpy
- name: Run DVC pipeline | retrain model
run: |
dvc repro data_update
dvc repro data_validation
dvc repro data_transformation
dvc repro model_train
dvc repro model_evaluation
- name: Commit and push updated model
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add models/model.pkl
git commit -m "[Github Action]: Update model with retrained model"
git push