mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-22 08:16:08 +00:00
Merge pull request #3 from storytold/echelon-run-tests
Script to run tests (eg. in CI)
This commit is contained in:
@@ -56,3 +56,7 @@ SoundFile==0.10.3.post1
|
|||||||
# Not sure where these came from
|
# Not sure where these came from
|
||||||
cffi==1.14.5
|
cffi==1.14.5
|
||||||
pycparser==2.20
|
pycparser==2.20
|
||||||
|
|
||||||
|
# For unit tests and static type checking
|
||||||
|
pyright==0.0.13.post0
|
||||||
|
pytest==7.0.1
|
||||||
|
|||||||
Executable
+18
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user