grantforge-api / scripts /pre_push_tests.sh
GrantForge Bot
Deploy to Hugging Face
afd56bc
#!/bin/bash
echo "Running pre-push backend tests..."
cd backend || exit 1
python -m pytest tests/
if [ $? -ne 0 ]; then
echo "Tests failed! Fix them before pushing."
exit 1
fi
echo "Tests passed!"
exit 0