Skip to content

Commit cf05e85

Browse files
authored
fix: import sys in M0 artifact resolver
1 parent 7b3e9f3 commit cf05e85

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish-m0-research-ledger.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
python3 - "${artifacts_metadata}" <<'PY'
112112
import json
113113
import os
114+
import sys
114115
from pathlib import Path
115116
116117
payload = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))

python/tests/test_manual_m0_research_publisher_workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def test_workflow_is_manual_and_binds_one_explicit_successful_qar_artifact(self)
3838
self.assertIn('metadata.get("head_branch") != "main"', workflow)
3939
self.assertIn('metadata.get("event") not in {"schedule", "workflow_dispatch"}', workflow)
4040
self.assertIn("QAR artifact workflow-run binding mismatch", workflow)
41+
self.assertIn('import sys\n from pathlib import Path', workflow)
4142
self.assertIn("QAR artifact must contain exactly one dated M0 source snapshot", workflow)
4243
self.assertIn("m0_research_source_snapshot_[0-9]{4}-[0-9]{2}-[0-9]{2}", workflow)
4344
self.assertIn("M0_SOURCE_SNAPSHOT_SHA256", workflow)

0 commit comments

Comments
 (0)