-
Notifications
You must be signed in to change notification settings - Fork 179
99 lines (78 loc) · 2.77 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
95
96
97
98
99
# 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.8', '3.10', '3.12']
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 setuptools
pip install .[test]
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v --cov=phonemizer --cov-report=xml test/
# # Using codecov now requires a secret token. An alternative can be
# # https://nedbatchelder.com/blog/202209/making_a_coverage_badge.html
# - name: Upload coverage to Codecov
# if: ${{ matrix.python-version == '3.12' }}
# uses: codecov/codecov-action@v2
# with:
# files: coverage.xml
# verbose: true
espeak-version:
runs-on: ubuntu-latest
strategy:
matrix:
# we used to test espeak-1.49 and 1.50 here but cannot be compiled
# anymore (ld error when linking speak-ng executable). I suppose some
# incompatbilty between old code / new compiler.
espeak-version: ['1.48.15', '1.51.1']
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 mbrola-af1
- name: Install espeak-1.48
if: ${{ matrix.espeak-version == '1.48.15' }}
run: sudo apt-get install espeak
- name: Install espeak>=1.49
if: ${{ matrix.espeak-version != '1.48.15' }}
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 src/espeak-ng
sudo make install
sudo ldconfig
espeak --version
- name: Install phonemizer
run: |
pip install --upgrade pip setuptools
pip install .[test]
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v