AlphaEdge Auto-Retrain Pipeline #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |