mirror of https://github.com/coqui-ai/TTS.git
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- dev
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
jobs:
|
|
check_skip:
|
|
runs-on: ubuntu-latest
|
|
if: "! contains(github.event.head_commit.message, '[ci skip]')"
|
|
steps:
|
|
- run: echo "${{ github.event.head_commit.message }}"
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: check OS
|
|
run: cat /etc/os-release
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install espeak-ng git
|
|
- name: Upgrade pip
|
|
# so we can take advantage of pyproject.toml build-dependency support
|
|
run: python3 -m pip install --upgrade pip
|
|
- name: Install TTS
|
|
run: |
|
|
python3 -m pip install .
|
|
python3 setup.py egg_info
|
|
- name: Lint check
|
|
run: |
|
|
cardboardlinter -n auto
|
|
- name: Unit tests
|
|
run: nosetests tests --nocapture --processes=0 --process-timeout=20 --process-restartworker
|
|
- name: Test scripts
|
|
run: |
|
|
./tests/test_server_package.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
|