Script to run tests (eg. in CI)

We'll incrementally add more tests as we progress. Not everything will
need testing.
This commit is contained in:
Brandon Thomas
2022-07-06 02:55:04 -04:00
parent 9ce1b5061d
commit ea6dce774b
2 changed files with 22 additions and 0 deletions
Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
set -euxo pipefail
TEST_VENV_DIRECTORY="./python"
# NB: "python" is the name of our virtual environment python directory.
if [ ! -d "${TEST_VENV_DIRECTORY}" ]; then
python3.6 -m venv "${TEST_VENV_DIRECTORY}"
fi
source python/bin/activate
pip install --upgrade pip
pip install -r requirements-tacotron-python36.txt
# Run tests in modules that support tests
pytest text -vv