From 67566ef076bbeef78dd1edc1313d3f51eb05dc2f Mon Sep 17 00:00:00 2001 From: Johan LEROY Date: Thu, 23 Jul 2026 15:25:28 +0200 Subject: [PATCH] TP4 : CI sans setup-python (Python via apt + venv) pour eviter le manifest 3.14 indisponible --- .forgejo/workflows/pipeline.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/pipeline.yml b/.forgejo/workflows/pipeline.yml index 9d03f60..22d0898 100644 --- a/.forgejo/workflows/pipeline.yml +++ b/.forgejo/workflows/pipeline.yml @@ -23,16 +23,16 @@ jobs: - name: Recuperation du code uses: actions/checkout@v4 - - name: Installation de Python - uses: actions/setup-python@v5 - with: - python-version: "3.14" - - - name: Installation des dependances - run: pip install -r requirements.txt + - name: Installation de Python et des dependances + run: | + apt-get update + apt-get install -y --no-install-recommends python3-venv + python3 -m venv .venv + .venv/bin/pip install --upgrade pip + .venv/bin/pip install -r requirements.txt - name: Execution du pipeline (split -> train --register -> promote) - run: python pipeline.py + run: .venv/bin/python pipeline.py env: # Serveur MLflow (basic auth) : URLs HTTPS via Caddy, resolues sur mlops-net. MLFLOW_TRACKING_URI: ${{ secrets.MLFLOW_TRACKING_URI }}