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