Make meta-package release retries tag-safe [skip ci]

This commit is contained in:
2026-08-04 16:27:47 +02:00
parent a24c94435e
commit 8aba74e01e
3 changed files with 157 additions and 11 deletions
+12
View File
@@ -162,6 +162,18 @@ class PackageRegistryReleaseTests(unittest.TestCase):
)
self.assertEqual(expected, actual)
def test_meta_package_workflow_supports_hash_safe_tag_retry(self) -> None:
workflow = (
ROOT / ".gitea/workflows/publish-developer-meta-package.yml"
).read_text(encoding="utf-8")
self.assertIn("workflow_dispatch:", workflow)
self.assertIn("TRIGGER_TAG: ${{ gitea.ref_name }}", workflow)
self.assertNotIn("GITEA_REF_NAME", workflow)
self.assertIn('refs/tags/{tag}^{{commit}}', workflow)
self.assertIn("already exists with a different SHA-256", workflow)
self.assertIn("PUBLISH_PYPI", workflow)
if __name__ == "__main__":
unittest.main()