Refactor pyThtoQgis workflow for clarity and checks

Updated workflow to check generated files and modified comments.
This commit is contained in:
Alex38Lyon
2026-08-31 17:43:29 +02:00
committed by GitHub
parent 9dfefaca98
commit 1bd59c5266
+16 -8
View File
@@ -1,3 +1,4 @@
name: pyThtoQgis name: pyThtoQgis
on: on:
@@ -5,7 +6,6 @@ on:
paths: paths:
- 'Outputs/SHP/*.shp' - 'Outputs/SHP/*.shp'
# Permet de lancer l'action manuellement
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -72,8 +72,6 @@ jobs:
pip install numpy pip install numpy
pip install alive-progress pip install alive-progress
# Installation des bindings Python GDAL
# correspondant à la version de GDAL du système
pip install "gdal[numpy]==$(gdal-config --version).*" pip install "gdal[numpy]==$(gdal-config --version).*"
# ------------------------------------------------------------ # ------------------------------------------------------------
@@ -115,8 +113,6 @@ jobs:
python -c "from alive_progress import alive_bar; print('alive-progress OK')" python -c "from alive_progress import alive_bar; print('alive-progress OK')"
# ------------------------------------------------------------ # ------------------------------------------------------------
# Exécution de pyThtoQgis # Exécution de pyThtoQgis
# ------------------------------------------------------------ # ------------------------------------------------------------
@@ -126,12 +122,22 @@ jobs:
python pyThtoQgis.py --folder "../../Outputs/SHP/" python pyThtoQgis.py --folder "../../Outputs/SHP/"
# ------------------------------------------------------------ # ------------------------------------------------------------
# Affichage des fichiers générés/modifiés # Vérification des fichiers générés
# ------------------------------------------------------------ # ------------------------------------------------------------
- name: Show generated files - name: Check generated files
run: | run: |
echo "========================================" echo "========================================"
echo "Fichiers modifiés" echo "GPKG et logs générés"
echo "========================================"
find Outputs -type f \( \
-name "*.gpkg" -o \
-name "pyThtoQgis.log" \
\) -print
echo
echo "========================================"
echo "Statut Git"
echo "========================================" echo "========================================"
git status --short git status --short
@@ -143,3 +149,5 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v7 uses: stefanzweifel/git-auto-commit-action@v7
with: with:
commit_message: "Auto-run pyThtoQgis" commit_message: "Auto-run pyThtoQgis"
file_pattern: 'Outputs/**/*.gpkg Outputs/**/pyThtoQgis.log'