gradio/scripts/run_local_tests.sh

9 lines
233 B
Bash
Raw Normal View History

#!/bin/bash
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
echo "Please run the script from repo directory"
exit -1
else
echo "Running the tests"
python -m pytest --cov=gradio --durations=20 --durations-min=0.1 test/local
fi