chore: update skill release readme source
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 26s
All checks were successful
Publish Python Package to Gitea / publish (push) Successful in 26s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,6 +28,32 @@ def publish_workflow_text() -> str:
|
||||
return f.read()
|
||||
|
||||
|
||||
def test_workflow_packages_readme_at_root(workflow_text: str) -> None:
|
||||
assert "readme_src = os.path.abspath('README.md')" in workflow_text
|
||||
assert "readme_dst = os.path.join(PACKAGE, 'README.md')" in workflow_text
|
||||
assert "Copied README.md" in workflow_text
|
||||
assert (
|
||||
"raise RuntimeError('README.md exists in skill root but was not packaged')"
|
||||
in workflow_text
|
||||
)
|
||||
|
||||
|
||||
def test_workflow_metadata_reads_root_readme(workflow_text: str) -> None:
|
||||
assert "readme_path = 'README.md'" in workflow_text
|
||||
assert "frontmatter.load(readme_path)" in workflow_text
|
||||
assert "metadata['readme_md'] = body" in workflow_text
|
||||
|
||||
|
||||
def test_workflow_does_not_use_references_readme_for_marketplace(
|
||||
workflow_text: str,
|
||||
) -> None:
|
||||
assert "os.path.join('references', 'README.md')" not in workflow_text
|
||||
assert not re.search(
|
||||
r"frontmatter\.load\([^)]*references[^)]*README",
|
||||
workflow_text,
|
||||
)
|
||||
|
||||
|
||||
def test_workflow_packages_env_example_at_root(workflow_text: str) -> None:
|
||||
assert ".env.example" in workflow_text
|
||||
assert "Copied .env.example" in workflow_text
|
||||
|
||||
Reference in New Issue
Block a user