adapt Makefile for CI

This commit is contained in:
Eren Gölge 2021-04-09 16:52:24 +02:00
parent 4e47d8f618
commit 72e72a9476
5 changed files with 6 additions and 89 deletions

View File

@ -1,51 +0,0 @@
version: 2
workflows:
version: 2
test:
jobs:
- test-3.6
- test-3.7
- test-3.8
executor: ubuntu-latest
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test-3.6: &test-template
docker:
- image: circleci/python:3.6
resource_class: large
working_directory: ~/repo
steps:
- checkout
- run: |
sudo apt update
sudo apt install espeak-ng git
- run: sudo pip install --upgrade pip
- run: sudo pip install -e .
- run: |
sudo pip install --quiet --upgrade cardboardlint pylint
cardboardlinter --refspec ${CIRCLE_BRANCH} -n auto
- run: nosetests tests --nocapture --processes=0 --process-timeout=20 --process-restartworker
- run: |
sudo ./tests/test_glow-tts_train.sh
sudo ./tests/test_tacotron_train.sh
sudo ./tests/test_vocoder_gan_train.sh
sudo ./tests/test_vocoder_wavegrad_train.sh
sudo ./tests/test_vocoder_wavernn_train.sh
sudo ./tests/test_speedy_speech_train.sh
test-3.7:
<<: *test-template
docker:
- image: circleci/python:3.7
test-3.8:
<<: *test-template
docker:
- image: circleci/python:3.8

View File

@ -35,8 +35,9 @@ jobs:
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y espeak-ng git
sudo apt install -y git make
sudo apt install -y python3-wheel gcc
make system-deps
- name: Upgrade pip
# so we can take advantage of pyproject.toml build-dependency support
run: python3 -m pip install --upgrade pip
@ -46,17 +47,6 @@ jobs:
python3 setup.py egg_info
- name: Lint check
run: |
cardboardlinter
make lint
- name: Unit tests
run: nosetests tests --nocapture --processes=0 --process-timeout=20 --process-restartworker
- name: Test scripts
run: |
./tests/test_demo_server.sh
./tests/test_glow-tts_train.sh
./tests/test_tacotron_train.sh
./tests/test_vocoder_gan_train.sh
./tests/test_vocoder_wavegrad_train.sh
./tests/test_vocoder_wavernn_train.sh
./tests/test_speedy_speech_train.sh
./tests/test_resample.sh
./tests/test_compute_statistics.sh
run: make test

View File

@ -7,8 +7,8 @@ help:
target_dirs := tests TTS notebooks
system-deps: ## install linux system deps
sudo apt-get install espeak-ng
sudo apt-get install sndfilelib1-dev
sudo apt-get install -y espeak-ng
sudo apt-get install -y libsndfile1-dev
deps: ## install 🐸 requirements.
pip install -r requirements.txt

View File

@ -16,7 +16,6 @@ tqdm
inflect
bokeh==1.4.0
pysbd
# pyworld
soundfile
gdown
umap-learn==0.4.6

View File

@ -1,21 +0,0 @@
torch>=1.5
tensorflow==2.3.1
numpy>=1.16.0
scipy>=0.19.0
numba==0.48
librosa==0.7.2
phonemizer>=2.2.0
unidecode==0.4.20
attrdict
tensorboardX
matplotlib
Pillow
flask
tqdm
inflect
pysbd
bokeh==1.4.0
soundfile
nose==1.3.7
cardboardlint==1.3.0
cython