Skip to content

Commit 251c867

Browse files
committed
Do not run the linkcheck test on tag because of race condition
1 parent 3f7684c commit 251c867

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)