mcy98's picture
Upload folder using huggingface_hub
e89a301 verified
Raw History Blame Contribute Delete
629 Bytes
#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate test_common1
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Define the target directory
TARGET_DIR="${SCRIPT_DIR}/Presto"
# Copy files to target directory
cp "${SCRIPT_DIR}/canonical.py" "${TARGET_DIR}/presto"
cp "${SCRIPT_DIR}/test.py" "${TARGET_DIR}/presto"
# Change to target directory and run the script
cd "${TARGET_DIR}/presto" || exit
# python test.py
pytest test.py --junitxml="${SCRIPT_DIR}/pytest_report/report.xml" \
--cov="presto.canonical" --cov-report=json:"${SCRIPT_DIR}/jsoncov"
# Clean up copied files
rm "canonical.py"
rm "test.py"