-
Notifications
You must be signed in to change notification settings - Fork 18
53 lines (48 loc) · 1.84 KB
/
ci-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI Pipeline
on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Dependency installation
run: |
sudo apt-get -y update
sudo apt-get -y install ffmpeg
sudo apt-get -y install espeak libespeak1 libespeak-dev espeak-data
sudo apt-get -y install libsndfile-dev
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
cat requirements.txt | xargs -L 1 pip install
cat requirements-stretch.txt | xargs -L 1 pip install
cat requirements-llm.txt | xargs -L 1 pip install
cat requirements-dev.txt | xargs -L 1 pip install
cat requirements-site.txt | xargs -L 1 pip install
pip install -e . --ignore-installed
- name: Type checking
run: |
python -m mypy --follow-imports=normal subaligner
- name: Linting
run: |
pycodestyle subaligner tests examples misc bin/subaligner bin/subaligner_1pass bin/subaligner_2pass bin/subaligner_batch bin/subaligner_convert bin/subaligner_train bin/subaligner_tune setup.py --ignore=E203,E501,W503 --exclude="subaligner/lib"
- name: Unit tests and coverage
run: |
coverage run -m unittest discover
coverage combine
coverage xml
bash <(curl -s https://codecov.io/bash) -n patch -F 90
- name: Integration tests
run: |
radish -b tests/integration/radish tests/integration/feature