From 1bd59c5266aa426b2ffa753f411987581f30abd6 Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Mon, 31 Aug 2026 17:43:29 +0200 Subject: [PATCH] Refactor pyThtoQgis workflow for clarity and checks Updated workflow to check generated files and modified comments. --- .github/workflows/pyThtoQgis.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pyThtoQgis.yml b/.github/workflows/pyThtoQgis.yml index 45f6265..74149ee 100644 --- a/.github/workflows/pyThtoQgis.yml +++ b/.github/workflows/pyThtoQgis.yml @@ -1,3 +1,4 @@ + name: pyThtoQgis on: @@ -5,7 +6,6 @@ on: paths: - 'Outputs/SHP/*.shp' - # Permet de lancer l'action manuellement workflow_dispatch: permissions: @@ -72,8 +72,6 @@ jobs: pip install numpy pip install alive-progress - # Installation des bindings Python GDAL - # correspondant à la version de GDAL du système pip install "gdal[numpy]==$(gdal-config --version).*" # ------------------------------------------------------------ @@ -115,8 +113,6 @@ jobs: python -c "from alive_progress import alive_bar; print('alive-progress OK')" - - # ------------------------------------------------------------ # Exécution de pyThtoQgis # ------------------------------------------------------------ @@ -126,12 +122,22 @@ jobs: 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: | 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 "========================================" git status --short @@ -143,3 +149,5 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: "Auto-run pyThtoQgis" + file_pattern: 'Outputs/**/*.gpkg Outputs/**/pyThtoQgis.log' +