Skip to content

Commit

Permalink
Do not run the linkcheck test on tag because of race condition (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
coretl authored Oct 30, 2024
2 parents 3f7684c + 251c867 commit b40a871
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit b40a871

Please sign in to comment.