Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not run the linkcheck test on tag because of race condition #209

Merged
merged 1 commit into from
Oct 30, 2024
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
Loading