mirror of
https://github.com/Alex38Lyon/Synthese-PSM_LARRA.git
synced 2026-11-30 04:08:35 +00:00
Update ScriptPython.yml
This commit is contained in:
1 parent
f63337e914
commit
394facd038
1 file changed
+112
-4
@@ -27,6 +27,113 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
token: ${{ secrets.SUBMODULES_TOKEN }}
|
token: ${{ secrets.SUBMODULES_TOKEN }}
|
||||||
|
|
||||||
|
# ============================================================
|
||||||
|
# 2. Diagnostic du sous-module Data
|
||||||
|
# ============================================================
|
||||||
|
- name: Diagnose Data submodule
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -u
|
||||||
|
echo "========================================"
|
||||||
|
echo "DIAGNOSTIC SOUS-MODULE DATA"
|
||||||
|
echo "========================================"
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.1. Informations générales
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "=== 1. Répertoire courant ==="
|
||||||
|
pwd
|
||||||
|
echo ""
|
||||||
|
echo "=== 2. Statut Git ==="
|
||||||
|
git status --short
|
||||||
|
git submodule status || true
|
||||||
|
echo ""
|
||||||
|
echo "=== 3. Configuration des sous-modules ==="
|
||||||
|
if [ -f .gitmodules ]; then
|
||||||
|
cat .gitmodules
|
||||||
|
else
|
||||||
|
echo "ERREUR : fichier .gitmodules absent"
|
||||||
|
fi
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.2. Vérification du répertoire Data
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "=== 4. Répertoire Data ==="
|
||||||
|
if [ ! -e Data ]; then
|
||||||
|
echo "ERREUR : Data n'existe pas"
|
||||||
|
elif [ ! -d Data ]; then
|
||||||
|
echo "ERREUR : Data existe mais n'est pas un répertoire"
|
||||||
|
ls -ld Data
|
||||||
|
else
|
||||||
|
echo "Data existe"
|
||||||
|
ls -ld Data
|
||||||
|
echo "Contenu du premier niveau :"
|
||||||
|
ls -la Data | head -80
|
||||||
|
fi
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.3. Vérification de l'initialisation Git
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "=== 5. État Git du sous-module ==="
|
||||||
|
if git -C Data rev-parse --is-inside-work-tree \
|
||||||
|
>/dev/null 2>&1; then
|
||||||
|
echo "Data est un dépôt Git"
|
||||||
|
git -C Data rev-parse --show-toplevel
|
||||||
|
git -C Data rev-parse HEAD
|
||||||
|
git -C Data status --short
|
||||||
|
echo "Remote :"
|
||||||
|
git -C Data remote -v
|
||||||
|
else
|
||||||
|
echo "ERREUR : Data n'est pas un dépôt Git initialisé"
|
||||||
|
fi
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.4. Recherche du fichier attendu
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "=== 6. Fichier attendu par Therion ==="
|
||||||
|
TARGET="Data/00-Ref_Square/00-Ref_Square-tot.th"
|
||||||
|
if [ -f "$TARGET" ]; then
|
||||||
|
echo "OK : fichier trouvé"
|
||||||
|
ls -lh "$TARGET"
|
||||||
|
else
|
||||||
|
echo "ERREUR : fichier absent : $TARGET"
|
||||||
|
echo ""
|
||||||
|
echo "Recherche du fichier dans Data :"
|
||||||
|
if [ -d Data ]; then
|
||||||
|
find Data \
|
||||||
|
-type f \
|
||||||
|
-name "00-Ref_Square-tot.th" \
|
||||||
|
-print 2>/dev/null | head -100
|
||||||
|
echo ""
|
||||||
|
echo "Répertoires contenant Square :"
|
||||||
|
find Data \
|
||||||
|
-type d \
|
||||||
|
-iname '*square*' \
|
||||||
|
-print 2>/dev/null | head -100
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.5. Vérification des fichiers Therion
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "=== 2.5. Fichiers .th dans Data ==="
|
||||||
|
|
||||||
|
if [ -d Data ]; then
|
||||||
|
COUNT=$(find Data -type f -name '*.th' \
|
||||||
|
2>/dev/null | wc -l)
|
||||||
|
echo "Nombre de fichiers .th : $COUNT"
|
||||||
|
|
||||||
|
find Data -type f -name '*.th' \
|
||||||
|
-print 2>/dev/null | head -100
|
||||||
|
fi
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# 2.6. Conclusion
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo ""
|
||||||
|
echo "========================================"
|
||||||
|
echo "Diagnostic du sous-module Data"
|
||||||
|
echo "========================================"
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# 2. Installation et exécution de Therion
|
# 2. Installation et exécution de Therion
|
||||||
# ============================================================
|
# ============================================================
|
||||||
@@ -47,8 +154,6 @@ jobs:
|
|||||||
therion --version
|
therion --version
|
||||||
command -v cavern
|
command -v cavern
|
||||||
cavern --version
|
cavern --version
|
||||||
echo "Vérification des fichiers du sous-module Data :"
|
|
||||||
test -f "Data/00-Ref_Square/00-Ref_Square-tot.th"
|
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
echo "COMPILATION ATLAS"
|
echo "COMPILATION ATLAS"
|
||||||
echo "========================================"
|
echo "========================================"
|
||||||
@@ -57,9 +162,12 @@ jobs:
|
|||||||
echo "ERREUR : configuration introuvable : $CONFIG"
|
echo "ERREUR : configuration introuvable : $CONFIG"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
therion "$CONFIG"
|
if therion "$CONFIG"; then
|
||||||
echo ""
|
|
||||||
echo "Compilation Therion terminée."
|
echo "Compilation Therion terminée."
|
||||||
|
else
|
||||||
|
THERION_STATUS=$?
|
||||||
|
echo "::warning::Échec de compilation Therion (code ${THERION_STATUS}). Poursuite du workflow."
|
||||||
|
fi
|
||||||
|
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# 3. Vérification des fichiers SHP et SQL modifiés ou lancement manuel
|
# 3. Vérification des fichiers SHP et SQL modifiés ou lancement manuel
|
||||||
|
|||||||
Reference in new issue
Block a user