-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (39 loc) · 1.33 KB
/
Copy pathml_pipeline.yml
File metadata and controls
47 lines (39 loc) · 1.33 KB
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
name: AlphaEdge Auto-Retrain Pipeline
on:
schedule:
- cron: '0 20 * * 5' # Vendredi 20h UTC
workflow_dispatch:
jobs:
train-and-log:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🐍 Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: 🔄 Run ETL (Download & Prepare Data)
run: python src/pipeline/etl.py
env:
PYTHONPATH: .
- name: 🤖 Retrain & Push to Hugging Face
run: python src/models/train.py
env:
PYTHONPATH: .
PYTHONUNBUFFERED: 1
HF_TOKEN: ${{ secrets.HF_TOKEN }}
MLFLOW_TRACKING_USERNAME: "SORADATA"
MLFLOW_TRACKING_PASSWORD: ${{ secrets.HF_TOKEN }}
- name: 📋 Generate job summary
if: always()
run: |
echo "## AlphaEdge Weekly Retrain" >> $GITHUB_STEP_SUMMARY
echo "- **Status**: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
echo "- **Run date**: $(date +'%Y-%m-%d %H:%M UTC')" >> $GITHUB_STEP_SUMMARY