Download scripts/dev/check_release.sh from HWresearch/GNN4Colliders: direct link, hf CLI and curl.
- Browser
- Download file 846 Bytes
-
https://huggingface.co/HWresearch/GNN4Colliders/resolve/main/scripts/dev/check_release.sh
- Command line
-
hf download hf://HWresearch/GNN4Colliders/scripts/dev/check_release.sh
-
curl -L -o check_release.sh https://huggingface.co/HWresearch/GNN4Colliders/resolve/main/scripts/dev/check_release.sh
846 Bytes
| set -euo pipefail | |
| repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| cd "$repo_root" | |
| rm -rf dist | |
| uv run ruff check . | |
| uv run ruff format --check . | |
| uv run pytest | |
| uv build | |
| uv run python -m twine check dist/* | |
| wheel="$(find dist -maxdepth 1 -type f -name '*.whl' -print -quit)" | |
| test_root="$(mktemp -d)" | |
| trap 'rm -rf "$test_root"' EXIT | |
| python -m venv "$test_root/venv" | |
| "$test_root/venv/bin/python" -m pip install --quiet "$wheel" | |
| ( | |
| cd "$test_root" | |
| "$test_root/venv/bin/python" -c \ | |
| 'import gnn4colliders; assert gnn4colliders.__version__ == "0.1.0"' | |
| "$test_root/venv/bin/gnn4colliders" --help | |
| "$test_root/venv/bin/gnn4colliders" train --help | |
| "$test_root/venv/bin/gnn4colliders" evaluate --help | |
| "$test_root/venv/bin/gnn4colliders" predict --help | |
| "$test_root/venv/bin/gnn4colliders" export --help | |
| ) | |