CI: разделить проверки Story и Epic PR #145

Open
bsodfather wants to merge 5 commits from ops/hermes-bmad-ci into main
pull from: ops/hermes-bmad-ci
2 changed files with 5 additions and 6 deletions
Showing only changes of commit e056e1487e - Show all commits

No files matched your search

+4 -5
View File
@@ -156,11 +156,10 @@ class DeployPolicyTests(unittest.TestCase):
self.assertIn("default: none", block)
self.assertIn("required: true", block)
def test_push_main_source_ci_stays_enabled(self):
self.assertRegex(
workflow_text(),
r"(?m)^ push:\n branches:\n - main$",
)
def test_full_ci_targets_main_pull_requests(self):
workflow = workflow_text()
self.assertRegex(workflow, r"(?m)^ pull_request:\n branches: \[main\]$")
self.assertNotRegex(workflow, r"(?m)^ push:")
def test_deploy_requires_successful_required_checks(self):
deploy = job_block("deploy")
+1 -1
View File
@@ -112,7 +112,7 @@ class WorkflowScopeTests(unittest.TestCase):
def test_only_four_heavy_rust_steps_are_skippable(self):
workflow = WORKFLOW.read_text(encoding="utf-8")
self.assertIn("run: python3 scripts/ci-release-tooling-scope.py", workflow)
self.assertIn("FORCE_FULL: ${{ inputs.validation_level == 'feature' || contains(gitea.event.pull_request.labels.*.name, 'feature-ready') }}", workflow)
self.assertIn("FORCE_FULL: ${{ gitea.event_name == 'pull_request' || inputs.validation_level == 'feature' }}", workflow)
conditional = "if: steps.release_tooling.outputs.ci_only != 'true'"
for name in (
"Check typed runtime configuration contract",