| #!/usr/bin/env bash |
| 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 |
| ) |
|
|