File size: 846 Bytes
ce2b7a1
6884bb5
578c672
 
ace59d6
 
6884bb5
 
c4ecb9c
1209ff1
6884bb5
 
1209ff1
6884bb5
 
 
 
6860921
 
 
 
6884bb5
 
81a633b
e47e73b
6884bb5
 
 
 
c101173
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
name: retrain model

on: 
  push:
  schedule: 
  - cron: "0 0 * * *"

jobs:
  retrain_model:
    runs-on: windows-latest
    steps:
      - name: checkout repo content
        uses: actions/checkout@v4 # checkout the repository content to github runner.
      - name: setup python
        uses: actions/setup-python@v4
        with:
          python-version: 3.8 #install the python needed
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt    
      - name: execute py script
        run: |
          python scrapeandappendforecastdata.py
          python modeltraining.py
          git config user.name github-actions
          git config user.email github-actions@github.com
          git add .
          git commit -m "testing"
          git push --force