diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6703c49..82326ab 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,7 @@ name: Publish on: push: - branches: ["main"] - paths: ["pyproject.toml"] + tags: ["v*"] jobs: publish: diff --git a/pyproject.toml b/pyproject.toml index e1bc3ba..e212c6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "codedecorum" -version = "0.1.1" +version = "0.1.2" description = "Run code-backed policy rules across Git repository changes" readme = "README.md" license = "MIT" diff --git a/tests/test_contracts.py b/tests/test_contracts.py index a892552..08569cf 100644 --- a/tests/test_contracts.py +++ b/tests/test_contracts.py @@ -278,7 +278,9 @@ def test_plugin_help_prints_packaged_readme_section( expected = readme[readme.index("## How to write a plugin") :].split("\n## ", 1)[0].rstrip() assert main(["--plugin-help"]) == 0 - assert capsys.readouterr().out.rstrip() == expected + plugin_help = capsys.readouterr().out.rstrip() + assert plugin_help.startswith("## How to write a plugin\n") + assert plugin_help == expected with pytest.raises(SystemExit) as exit_info: main(["--help"]) diff --git a/uv.lock b/uv.lock index 443c8d5..7782399 100644 --- a/uv.lock +++ b/uv.lock @@ -4,7 +4,7 @@ requires-python = ">=3.11" [[package]] name = "codedecorum" -version = "0.1.1" +version = "0.1.2" source = { editable = "." } dependencies = [ { name = "pygments" },