From 1eb3dc6591f1c21fd94616126ae2c31d9d20ad7c Mon Sep 17 00:00:00 2001 From: Alex38Lyon <55714436+Alex38Lyon@users.noreply.github.com> Date: Fri, 25 Sep 2026 19:34:19 +0200 Subject: [PATCH] Refactor Python script execution in workflow --- .github/workflows/ScriptPython.yml | 34 +++--------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ScriptPython.yml b/.github/workflows/ScriptPython.yml index 41caed0..975e118 100644 --- a/.github/workflows/ScriptPython.yml +++ b/.github/workflows/ScriptPython.yml @@ -381,8 +381,7 @@ jobs: echo "pyThtoQgis" echo "========================================" cd Scripts/pyThtoQgis - python pyThtoQgis.py \ - --folder "../../Outputs/SHP/" + python pyThtoQgis.py --folder "../../Outputs/SHP/" # ============================================================ # 14. Vérification base SQL @@ -406,22 +405,7 @@ jobs: # ============================================================ # 15. Exécution pyThStat - # ============================================================ - # ============================================================ - # Recherche pyThStat.py - # ============================================================ - - name: Find pyThStat.py - if: steps.changed.outputs.shp == 'true' - shell: bash - run: | - echo "========================================" - echo "RECHERCHE pyThStat.py" - echo "========================================" - find . \ - -type f \ - -name "pyThStat.py" \ - -print - + # ============================================================ - name: Run pyThStat if: steps.changed.outputs.shp == 'true' shell: bash -el {0} @@ -432,42 +416,30 @@ jobs: echo "========================================" cd .. cd Scripts/pyThStat - python pyThStat.py \ - --file "../../Outputs/DB_Synthese-PSM_LARRA.sql" + python pyThStat.py --file "../../Outputs/DB_Synthese-PSM_LARRA.sql" # ============================================================ # 16. Fichiers produits # ============================================================ - - name: Show generated files if: steps.changed.outputs.shp == 'true' shell: bash run: | - echo "========================================" echo "GENERATED FILES" echo "========================================" - - git status --short - - echo "" - git diff --stat - # ============================================================ # 17. Commit # ============================================================ - - name: Commit generated files if: steps.changed.outputs.shp == 'true' uses: stefanzweifel/git-auto-commit-action@v7 with: - commit_message: "Auto-generate outputs from SHP" - commit_user_name: "github-actions[bot]" commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com"