Skip to content

fixing CI

fixing CI #222

Workflow file for this run

# 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.7', '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 pytest pytest-cov setuptools
pip 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.10' }}
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 pytest setuptools
pip install .
- name: Version phonemizer
run: phonemize --version
- name: Test phonemizer
run: pytest -v