Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def test_template_defaults(tmp_path: Path):
catalog_info = tmp_path / "catalog-info.yaml"
assert catalog_info.exists()
run("./venv/bin/tox -p")
run("./venv/bin/tox -e docs build -- -b linkcheck")
if not run_pipe("git tag --points-at HEAD"):
# Only run linkcheck if not on a tag, as the CI might not have pushed
# the docs for this tag yet, so we will fail
run("./venv/bin/tox -e docs build -- -b linkcheck")
run("./venv/bin/pip install build twine")
run("./venv/bin/python -m build")
run("./venv/bin/twine check --strict dist/*")
Expand Down