ci: run CGAL tests only on pull requests, not on every push
All checks were successful
C++ Tests / test-fast (push) Successful in 2m48s
C++ Tests / test-cgal (push) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
Tarik Moussa
2026-05-18 01:07:37 +02:00
parent c91230579f
commit 04b0ae22f2

View File

@@ -49,7 +49,7 @@ jobs:
# ───────────────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────────────
# Job 2 — test-cgal # Job 2 — test-cgal
# Vollständige CGAL-Test-Suite (Phase 37, 158 Tests). # Vollständige CGAL-Test-Suite (Phase 37, 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. # Startet erst nach erfolgreichem test-fast.
# #
# Verwendet -DWITH_CGAL_TESTS=ON (nicht -DWITH_CGAL=ON), damit kein # Verwendet -DWITH_CGAL_TESTS=ON (nicht -DWITH_CGAL=ON), damit kein
@@ -59,10 +59,7 @@ jobs:
# ───────────────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────────────
test-cgal: test-cgal:
needs: test-fast needs: test-fast
if: > if: github.event_name == 'pull_request'
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/dev' ||
github.event_name == 'pull_request'
runs-on: eulernest runs-on: eulernest
container: container:
image: git.eulernest.eu/conformallab/ci-cpp:latest image: git.eulernest.eu/conformallab/ci-cpp:latest