Spaces:
Sleeping
Sleeping
Download scripts/pre_submission_validate.sh from GTsingh12/ATS-openenv: direct link, hf CLI and curl.
- Browser
- Download file 719 Bytes
-
https://huggingface.co/spaces/GTsingh12/ATS-openenv/resolve/main/scripts/pre_submission_validate.sh
- Command line
-
hf download hf://spaces/GTsingh12/ATS-openenv/scripts/pre_submission_validate.sh
-
curl -L -o pre_submission_validate.sh https://huggingface.co/spaces/GTsingh12/ATS-openenv/resolve/main/scripts/pre_submission_validate.sh
719 Bytes
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| REPO_DIR_INPUT="${1:-$SCRIPT_DIR/..}" | |
| REPO_DIR="$(cd "$REPO_DIR_INPUT" && pwd)" | |
| PING_URL="${PING_URL:-}" | |
| echo "Step 0/5: Checking release branch hygiene" | |
| bash "$REPO_DIR/scripts/check_release_hygiene.sh" "$REPO_DIR" | |
| if [ -n "$PING_URL" ]; then | |
| echo "Step 1/5: Pinging deployed Space" | |
| python "$REPO_DIR/scripts/ping_env.py" "$PING_URL" | |
| fi | |
| echo "Step 2/5: Building Docker image" | |
| docker build "$REPO_DIR" | |
| echo "Step 3/5: Running OpenEnv validation" | |
| python -m openenv.cli validate "$REPO_DIR" | |
| echo "Step 4/5: Running task graders" | |
| python "$REPO_DIR/scripts/run_graders.py" | |
| echo "Validation completed successfully." | |