Skip to content

IP-5188: [phonemizer] v3.3.0 배포 #12

IP-5188: [phonemizer] v3.3.0 배포

IP-5188: [phonemizer] v3.3.0 배포 #12

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
espeak-version: ["1.48.15", "1.51.1"]
name: Python ${{ matrix.python-version }} / Espeak ${{ matrix.espeak-version }}
steps:
- uses: actions/checkout@v4
- 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: Set up Python
uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Load cached poetry installation
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-${{ steps.setup-python.outputs.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest -vv -s test