NutriLoop / .github /workflows /retrain.yml
AB1N05's picture
Nutriloop V2 Backend - Global Model Architected
1fa55f4
Raw
History Blame Contribute Delete
780 Bytes
name: NutriLoop Nightly Retrain
on:
schedule:
- cron: '30 19 * * *' # 1:00 AM IST = 19:30 UTC
workflow_dispatch: # manual trigger for testing
jobs:
retrain:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Run full retraining pipeline
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
NEWSAPI_KEY: ${{ secrets.NEWSAPI_KEY }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_REPO_ID: ${{ secrets.HF_REPO_ID }}
run: uv run python scripts/retrain.py