forked from bootphon/phonemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (73 loc) · 2.41 KB
/
linux.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Test on Linux Ubuntu with festival-2.5 with various Python and espeak versions
name: Linux
on: [push, pull_request]
jobs:
python-version:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- name: Checkout phonemizer
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install espeak-ng festival mbrola mbrola-fr1
- name: Install phonemizer
run: |
pip install --upgrade pip pytest pytest-cov
python setup.py install
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v --cov=phonemizer --cov-report=xml test/
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.9' }}
uses: codecov/codecov-action@v2
with:
files: coverage.xml
verbose: true
espeak-version:
runs-on: ubuntu-latest
strategy:
matrix:
espeak-version: ['1.48.03', '1.49.2', '1.50']
steps:
- name: Checkout phonemizer
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install festival mbrola mbrola-fr1
- name: Install espeak-1.48
if: ${{ matrix.espeak-version == '1.48.03' }}
run: sudo apt install espeak
- name: Install espeak>=1.49
if: ${{ matrix.espeak-version != '1.48.03' }}
env:
ESPEAK_VERSION: ${{ matrix.espeak-version }}
run: |
sudo apt-get install make autoconf automake libtool pkg-config gcc libsonic-dev libpcaudio-dev git
git clone --depth 1 --branch $ESPEAK_VERSION https://github.com/espeak-ng/espeak-ng.git
cd espeak-ng
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
espeak --version
- name: Install phonemizer
run: |
pip install --upgrade pip pytest
python setup.py install
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v