diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 1528056..6e77b1e 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -37,12 +37,14 @@ jobs: - name: Test phonemizer run: pytest -v --cov=phonemizer --cov-report=xml test/ - - name: Upload coverage to Codecov - if: ${{ matrix.python-version == '3.12' }} - uses: codecov/codecov-action@v2 - with: - files: coverage.xml - verbose: true + # # 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 diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index 92ec0d5..2a48059 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -7,7 +7,9 @@ on: [push, pull_request] jobs: test: - runs-on: macos-latest + # 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 @@ -19,11 +21,14 @@ jobs: - name: Setup python uses: actions/setup-python@v2 - - name: Install espeak-1.48 + - 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 @@ -44,6 +49,10 @@ jobs: 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 diff --git a/.github/workflows/publish_pypi.yaml b/.github/workflows/publish_pypi.yaml index 501c755..f350483 100644 --- a/.github/workflows/publish_pypi.yaml +++ b/.github/workflows/publish_pypi.yaml @@ -22,10 +22,11 @@ jobs: sudo apt-get update sudo apt-get install espeak-ng festival mbrola mbrola-fr1 - - name: Build phonemizer + - name: Test and build phonemizer run: | - pip install --upgrade pip wheel build + pip install --upgrade pip setuptools build pip install .[test] + pytest python -m build - name: Publish to Pypi