TTS/.github/workflows/main.yml

61 lines
1.8 KiB
YAML
Raw Normal View History

2021-03-08 02:08:04 +00:00
name: Test
on:
push:
2021-03-08 10:22:50 +00:00
branches:
- master
- dev
2021-03-08 02:08:04 +00:00
pull_request:
2021-03-08 10:39:14 +00:00
types: [opened, synchronize, reopened]
2021-03-08 02:08:04 +00:00
jobs:
2021-03-08 10:51:03 +00:00
check_skip:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[ci skip]')"
steps:
- run: echo "${{ github.event.head_commit.message }}"
2021-03-08 02:08:04 +00:00
2021-03-08 10:51:03 +00:00
test:
2021-03-08 02:08:04 +00:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
2021-03-08 10:39:14 +00:00
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
2021-03-08 02:08:04 +00:00
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
2021-03-08 10:28:54 +00:00
- name: check OS
run: cat /etc/os-release
2021-03-08 02:08:04 +00:00
- 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: |
2021-03-08 04:19:05 +00:00
cardboardlinter -n auto
2021-03-08 02:08:04 +00:00
- 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