From df48592ec5ce18a1f741f0e0b71ae4b51070bd5a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 11 Oct 2026 05:48:41 +0000 Subject: [PATCH] test(ci): make workflow action pin assertions independent of major versions Dependabot bumps of actions/checkout, setup-python and github-script failed tests/test_metadata.py because it hard-coded the old majors. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01RNAApyPmfEHABhzRXciAEk --- tests/test_metadata.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 9d76910..1f4054c 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -1,5 +1,6 @@ """Automatisierte Metadaten-, Sicherheits-, Ökosystem- und Dokumentationsparitätstests für DevCenter.""" +import re from pathlib import Path REPO_ROOT = Path(__file__).resolve().parent.parent @@ -205,8 +206,8 @@ def test_cross_platform_smoke_scripts_and_ci(): assert workflow.is_file(), "tests.yml fehlt in .github/workflows/" workflow_content = workflow.read_text(encoding="utf-8") - assert "actions/checkout@v4" in workflow_content - assert "actions/setup-python@v5" in workflow_content + assert re.search(r"actions/checkout@v\d+", workflow_content) + assert re.search(r"actions/setup-python@v\d+", workflow_content) assert "concurrency:" in workflow_content assert "cancel-in-progress: true" in workflow_content assert "linux-platform-smoke:" in workflow_content @@ -379,7 +380,7 @@ def test_ci_workflows_auto_assign_and_label_sync(): assert "concurrency:" in aa_content assert "cancel-in-progress: true" in aa_content assert "timeout-minutes: 5" in aa_content - assert "actions/github-script@v7" in aa_content + assert re.search(r"actions/github-script@v\d+", aa_content) ls_content = label_sync.read_text(encoding="utf-8") assert "concurrency:" in ls_content