From 008b8ba736b1e76d2d5941884b6292463380bb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Mon, 8 Mar 2021 03:08:04 +0100 Subject: [PATCH] github actions CI --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..d3c5cf11 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,48 @@ +name: Test + +on: + push: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - 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: | + python3 -m pip install --quiet --upgrade cardboardlint pylint + cardboardlinter --refspec ${GITHUB_BASE_REF} -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