Refactor SQL file handling in ScriptPython.yml

Updated SQL file path and added a command to find SQL files in the Outputs directory.
This commit is contained in:
Alex38Lyon
2026-09-25 19:52:43 +02:00
committed by GitHub
parent 82fa7cf3c3
commit 8cd34e4681
+14 -3
View File
@@ -395,8 +395,18 @@ jobs:
echo "CHECK DATABASE" echo "CHECK DATABASE"
echo "========================================" echo "========================================"
cd .. cd ..
cd Scripts/pyThStat echo "========================================"
SQL_FILE="./../../Outputs/DB_Synthese-PSM_LARRA.sql" 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 if [ ! -f "$SQL_FILE" ]; then
echo "ERREUR : fichier SQL introuvable :" echo "ERREUR : fichier SQL introuvable :"
echo "$SQL_FILE" echo "$SQL_FILE"
@@ -417,7 +427,8 @@ jobs:
echo "pyThStat" echo "pyThStat"
echo "========================================" echo "========================================"
ls -l 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 # 16. Fichiers produits