Skip to content

Model training

Model training #31

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