Skip to content

Commit b40a871

Browse files
authored
Do not run the linkcheck test on tag because of race condition (#209)
2 parents 3f7684c + 251c867 commit b40a871

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ def test_template_defaults(tmp_path: Path):
5252
catalog_info = tmp_path / "catalog-info.yaml"
5353
assert catalog_info.exists()
5454
run("./venv/bin/tox -p")
55-
run("./venv/bin/tox -e docs build -- -b linkcheck")
55+
if not run_pipe("git tag --points-at HEAD"):
56+
# Only run linkcheck if not on a tag, as the CI might not have pushed
57+
# the docs for this tag yet, so we will fail
58+
run("./venv/bin/tox -e docs build -- -b linkcheck")
5659
run("./venv/bin/pip install build twine")
5760
run("./venv/bin/python -m build")
5861
run("./venv/bin/twine check --strict dist/*")

0 commit comments

Comments
 (0)