Files
trycua--cua/.github/scripts/tests/test_cua_cloud_release_wiring.py
wehub-resource-sync 91e75e620b
CI: cua-driver distro-compat matrix / Resolve release version (push) Waiting to run
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Blocked by required conditions
CI: cua-driver distro-compat matrix / Distro compat summary (push) Blocked by required conditions
CI: Nix Linux Rust source / Nix / compositor build (push) Waiting to run
CI: Nix Linux Rust source / Nix / driver package (push) Waiting to run
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Waiting to run
CI: Rust Linux unit / Rust Linux unit and compile (push) Waiting to run
CI: Rust Windows unit / Rust Windows unit and compile (push) Waiting to run
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Waiting to run
CD: Docs MCP Server / build (linux/amd64) (push) Waiting to run
CD: Docs MCP Server / build (linux/arm64) (push) Waiting to run
CD: Docs MCP Server / merge (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 13:03:19 +08:00

40 lines
1.4 KiB
Python

"""Regression tests for cua-cloud release automation wiring."""
from pathlib import Path
import unittest
REPO_ROOT = Path(__file__).resolve().parents[3]
class TestCuaCloudReleaseWiring(unittest.TestCase):
"""Verify cua-cloud is wired into the release automation."""
def read(self, relative_path: str) -> str:
return (REPO_ROOT / relative_path).read_text()
def test_release_on_merge_tracks_cua_cloud(self) -> None:
workflow = self.read(".github/workflows/release-on-merge.yml")
self.assertIn('["libs/python/cua-cloud/"]="pypi/cloud"', workflow)
def test_release_bump_version_supports_cua_cloud(self) -> None:
workflow = self.read(".github/workflows/release-bump-version.yml")
self.assertIn("- pypi/cloud", workflow)
self.assertIn('"pypi/cloud")', workflow)
self.assertIn('echo "directory=libs/python/cua-cloud" >> $GITHUB_OUTPUT', workflow)
def test_unreleased_digest_tracks_cua_cloud(self) -> None:
workflow = self.read(".github/workflows/release-unreleased-digest.yml")
self.assertIn('SERVICE_TAG_DIR["pypi/cloud"]="cloud-v|libs/python/cua-cloud/"', workflow)
def test_package_release_files_exist(self) -> None:
self.assertTrue((REPO_ROOT / ".github/workflows/cd-py-cloud.yml").exists())
self.assertTrue((REPO_ROOT / "libs/python/cua-cloud/.bumpversion.cfg").exists())
if __name__ == "__main__":
unittest.main()