-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1002 Bytes
/
model_training.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
39
40
41
42
43
44
45
46
47
48
name: Model training
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
jobs:
run-script:
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout repository content
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run the script
run: |
python ML/model_training.py
- name: Configure git
run: |
git config --global user.name 'Adegbehingbe Oluwakorede Joseph'
git config --global user.email '[email protected]'
- name: Commit recent data updates
run: |
git pull
git add ML/model.pickle
git commit -m "Update model.pickle"
- name: Push data changes
run: |
git push origin main