forked from bootphon/phonemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (44 loc) · 1.43 KB
/
macos.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
# Test on macos with festival-2.4 compiled from source and espeak-1.48 from
# homebrew. To save time and ressources, festival is cached across runs.
name: MacOS
on: [push, pull_request]
jobs:
test:
runs-on: macos-latest
env:
PHONEMIZER_FESTIVAL_EXECUTABLE: ${{ github.workspace }}/festival/build_festival/festival/bin/festival
steps:
- name: Checkout phonemizer
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
- name: Install espeak-1.48
run: |
brew update
brew install espeak
- name: Cache festival
uses: actions/cache@v2
id: cache-festival
with:
path: ${{ github.workspace }}/festival
key: ${{ runner.os }}-festival
- name: Checkout festival
if: steps.cache-festival.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: pettarin/setup-festival-mbrola
path: festival
- name: Install festival
if: steps.cache-festival.outputs.cache-hit != 'true'
run: |
cd festival
bash setup_festival_mbrola.sh . festival
- name: Install phonemizer
run: |
pip install --upgrade pip
python setup.py install
pip install --upgrade pytest
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v