mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-09-30 07:21:55 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user