-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (32 loc) · 1.11 KB
/
main.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
# This workflow will install Python dependencies, run get_data_daily.py and then train_model_daily.py every 1 minute
name: Daily Data Update
on:
schedule:
- cron: '30 21 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run get_data_daily.py
run: |
python get_data_daily.py
- name: Run train_model_daily.py
run: |
python train_model_daily.py
- name: push to main branch
run: |
git config --global user.email "[email protected]"
git config --global user.name "Mohamed Abd-El-Gani"
git add .
git commit -m "Updating Via Actions Workflows "
git push origin master