Uniglot/Hooks/scripts.d/pytest
2022-09-18 21:34:48 -05:00

12 lines
221 B
Bash
Executable File

#!/bin/bash
# Run python3 tests
if [ -d venv ]; then
source venv/bin/activate
elif [ -f requirements.txt ]; then
python3 -m venv venv
venv/bin/python3 -m pip install -r requirements.txt
fi
python3 -m pytest