Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f02f033

Browse files
committedApr 29, 2021
fix .models.json and add testing to check released models availability
1 parent fd95e9b commit f02f033

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed
 

‎.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
sudo apt install -y python3-wheel gcc
4040
make system-deps
4141
- name: Upgrade pip
42-
# so we can take advantage of pyproject.toml build-dependency support
4342
run: python3 -m pip install --upgrade pip
4443
- name: Install TTS
4544
run: |

‎TTS/.models.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"author": "Eren Gölge @erogol",
7070
"license": "",
7171
"contact":"egolge@coqui.com"
72-
},
72+
}
7373
}
7474
},
7575
"es":{

‎tests/model_manager.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python3`
2+
import os
3+
import shutil
4+
import glob
5+
from tests import get_tests_output_path
6+
from TTS.utils.manage import ModelManager
7+
8+
9+
def test_if_all_models_available():
10+
"""Check if all the models are downloadable."""
11+
print(" > Checking the availability of all the models under the ModelManager.")
12+
manager = ModelManager(output_prefix=get_tests_output_path())
13+
model_names = manager.list_models()
14+
for model_name in model_names:
15+
manager.download_model(model_name)
16+
print(f" | > OK: {model_name}")
17+
18+
folders = glob.glob(os.path.join(manager.output_prefix, '*'))
19+
assert len(folders) == len(model_names)
20+
shutil.rmtree(manager.output_prefix)

‎tests/test_model_manager.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.