Uniglot/Hooks/scripts.d/pytest

14 lines
251 B
Plaintext
Raw Normal View History

#!/bin/bash
# Run python3 tests
if [ -d venv ]; then
source venv/bin/activate
2022-09-18 21:34:48 -05:00
elif [ -f requirements.txt ]; then
python3 -m venv venv
venv/bin/python3 -m pip install -r requirements.txt
fi
2022-10-26 19:38:18 -05:00
if [ -d tests/ ]; then
python3 -m pytest
fi