mcy98's picture
Upload folder using huggingface_hub
6077218 verified
Raw History Blame Contribute Delete
668 Bytes
#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate test_981
# conda activate test_57
# Get the directory where the script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Define the target directory
TARGET_DIR="${SCRIPT_DIR}/GraphACL"
# Copy files to target directory
cp "${SCRIPT_DIR}/canonical.py" "${TARGET_DIR}/hete"
cp "${SCRIPT_DIR}/test.py" "${TARGET_DIR}"
# Change to target directory and run the script
cd "${TARGET_DIR}" || exit
PYTHONPATH="${SCRIPT_DIR}" pytest --timeout=10 test.py --junitxml="${SCRIPT_DIR}/pytest_report/report.xml"
# Clean up copied files
rm "${TARGET_DIR}/hete/canonical.py"
rm "${TARGET_DIR}/test.py"