Skip to content

Commit

Permalink
fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmaat committed Aug 1, 2024
1 parent 11a2875 commit f8e33bb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8e33bb

Please sign in to comment.