From 04b0ae22f23bdacf1e50374464ca9015f9af13e6 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Mon, 18 May 2026 01:07:37 +0200 Subject: [PATCH] ci: run CGAL tests only on pull requests, not on every push Reduces Pi load: test-cgal now triggers only when a PR is opened/updated, not on every push to dev or main. test-fast continues to run on all branches. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/cpp-tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/cpp-tests.yml b/.gitea/workflows/cpp-tests.yml index 3ec4b73..4ad00f6 100644 --- a/.gitea/workflows/cpp-tests.yml +++ b/.gitea/workflows/cpp-tests.yml @@ -49,7 +49,7 @@ jobs: # ───────────────────────────────────────────────────────────────────────────── # Job 2 — test-cgal # Vollständige CGAL-Test-Suite (Phase 3–7, 158 Tests). -# Läuft nur auf main, dev und Pull Requests — nicht auf Feature-Branches. +# Läuft NUR bei Pull Requests (nicht bei direkten Pushes auf dev/main). # Startet erst nach erfolgreichem test-fast. # # Verwendet -DWITH_CGAL_TESTS=ON (nicht -DWITH_CGAL=ON), damit kein @@ -59,10 +59,7 @@ jobs: # ───────────────────────────────────────────────────────────────────────────── test-cgal: needs: test-fast - if: > - github.ref == 'refs/heads/main' || - github.ref == 'refs/heads/dev' || - github.event_name == 'pull_request' + if: github.event_name == 'pull_request' runs-on: eulernest container: image: git.eulernest.eu/conformallab/ci-cpp:latest