release: consolidate pending API changes into 1.3.0

This commit is contained in:
DeFiDude committed 2026-10-12 15:25:17 -06:00
1 parent 1ff0134979
commit 032c3fd6d3
11 files changed
+180 -195

No files matched your search

@@ -84,6 +84,25 @@ def check_release_workflow() -> None:
if "ref: ${{ env.RELEASE_TAG }}" not in workflow:
fail("release workflow does not check out RELEASE_TAG")
publishers = re.findall(
r"^ - uses: softprops/action-gh-release@[0-9a-f]{40}[^\n]*\n"
r" with:\n((?: [^\n]*\n)+)",
workflow,
re.MULTILINE,
)
if len(publishers) != 1:
fail("release workflow must have one explicit GitHub publisher")
inputs = dict(re.findall(r"^ ([a-z_]+): (.*)$", publishers[0], re.MULTILINE))
expected = {
"tag_name": "${{ env.RELEASE_TAG }}",
"name": "${{ env.RELEASE_TAG }}",
"body": '""',
"generate_release_notes": "false",
"append_body": "false",
}
if any(inputs.get(key) != value for key, value in expected.items()) or "body_path" in inputs:
fail("GitHub releases must use the exact version tag as title and an empty body")
release_builds = [
line.strip()
for line in workflow.splitlines()
@@ -113,6 +132,8 @@ def check_documentation(version: str) -> None:
def check_release_tag(release_tag: str, version: str) -> None:
if not re.fullmatch(r"v\d+\.\d+\.\d+", release_tag):
fail("release tags must have the form vX.Y.Z")
expected_tag = f"v{version}"
if release_tag != expected_tag:
fail(f"release tag {release_tag!r} does not match {expected_tag!r}")