fixed pypi classifier #303
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
# the "Install festival" step does not work on macos-14 (M1 arm64 | |
# architecture), so we stay on an older version | |
runs-on: macos-13 | |
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 | |
run: | | |
brew update | |
brew install espeak | |
- name: Check espeak | |
run: espeak --version | |
- 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: Check festival | |
run: | | |
$PHONEMIZER_FESTIVAL_EXECUTABLE --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 |