From ae4082c584d7cdc9b03dc287e0a4d54b594b1399 Mon Sep 17 00:00:00 2001 From: Meryemel-gham Date: Mon, 21 Sep 2026 14:41:26 +0200 Subject: [PATCH] ci(etl): valide l'import historique dans l'image Airflow --- .github/workflows/airflow.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/airflow.yml b/.github/workflows/airflow.yml index d5a722a..d98b780 100644 --- a/.github/workflows/airflow.yml +++ b/.github/workflows/airflow.yml @@ -90,12 +90,10 @@ jobs: docker run --rm --network none enervision-airflow:ci bash -c "cd /opt/ml && env -u VIRTUAL_ENV uv run --no-sync python -m enervision_ml.train --help" - # `--help` sort par argparse avant `get_settings()` : ni base ni secret requis, et - # l'import du module prouve que l'environnement /opt/backend est complet. Les deux - # commandes du DAG `alertes` sont couvertes, `app.cli` tirant tout FastAPI derrière lui. - - name: Vérifie que les deux commandes du DAG alertes s'importent sans réseau + # `--help` valide que le module historique et ses dépendances sont présents dans + # l'environnement backend embarqué, sans nécessiter PostgreSQL ni accès réseau. + - name: Vérifie que l'import historique s'importe sans réseau run: > docker run --rm --network none enervision-airflow:ci bash -c "cd /opt/backend - && env -u VIRTUAL_ENV uv run --no-sync python -m app.detection.internal_alerts --help - && env -u VIRTUAL_ENV uv run --no-sync python -m app.cli generate-recommendations --help" + && env -u VIRTUAL_ENV uv run --no-sync python -m app.etl.historical_import --help" \ No newline at end of file