From 8cd34e4681dd42ba9e4e9e9baf66bf107bfc0791 Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Fri, 25 Sep 2026 19:52:43 +0200 Subject: [PATCH] Refactor SQL file handling in ScriptPython.yml Updated SQL file path and added a command to find SQL files in the Outputs directory. --- .github/workflows/ScriptPython.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ScriptPython.yml b/.github/workflows/ScriptPython.yml index db1f161..0eadb61 100644 --- a/.github/workflows/ScriptPython.yml +++ b/.github/workflows/ScriptPython.yml @@ -395,8 +395,18 @@ jobs: echo "CHECK DATABASE" echo "========================================" cd .. - cd Scripts/pyThStat - SQL_FILE="./../../Outputs/DB_Synthese-PSM_LARRA.sql" + echo "========================================" + echo "Find SQL" + echo "========================================" + find Outputs \ + -maxdepth 2 \ + -type f \ + -name "*.sql" \ + -print + ls -l + + SQL_FILE="Outputs/DB_Synthese-PSM_LARRA.sql" + if [ ! -f "$SQL_FILE" ]; then echo "ERREUR : fichier SQL introuvable :" echo "$SQL_FILE" @@ -417,7 +427,8 @@ jobs: echo "pyThStat" echo "========================================" ls -l - python pyThStat.py --file "./../../Outputs/DB_Synthese-PSM_LARRA.sql" + cd Scripts/pyThStat + python pyThStat.py --file "/../../Outputs/DB_Synthese-PSM_LARRA.sql" # ============================================================ # 16. Fichiers produits