diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 370df66..3e0a2ea 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -9,7 +9,7 @@ jobs: build: strategy: matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] python-version: - "3.10" - "3.11" @@ -35,9 +35,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Analysing the code with pylint + - name: Linting with Ruff run: uv run --group dev ruff check + - name: Wait random time to prevent permission issues in cURL + run: sleep $((random % 5)) + - name: Installing MBROLA run: sudo /bin/bash bin/install.sh -v it4 diff --git a/bin/install.sh b/bin/install.sh index 9ddcc0d..2a483a7 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -163,8 +163,12 @@ tar -xzf "${TEMP_DIR}/${FNAME}" -C "${TEMP_DIR}" || { exit 1 } +MBDIR="${TEMP_DIR}/MBROLA-${RELEASE}" + +[[ $OSTYPE == 'darwin'* ]] && sed -i '' '70s/^/#/' $MBDIR/Misc/common.h; + # Compile and install MBROLA -cd "${TEMP_DIR}/MBROLA-${RELEASE}" || exit 1 +cd $MBDIR || exit 1 if ! make; then echo "Error: Failed to compile MBROLA." >&2 exit 1 diff --git a/docs/index.rst b/docs/index.rst index 8897bb7..f3b9d82 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -38,7 +38,7 @@ Requirements ============= - Python 3.10+ -- `MBROLA binary `_ installed and available in your system path +- `MBROLA binary `_ installed and available in your system path. - MBROLA voices (e.g., ``it4``) installed at ``/usr/share/mbrola//`` Installation @@ -66,19 +66,6 @@ Quick Start # Synthesize and save audio caffe.make_sound("caffe.wav", voice="it4") -Table of Contents -================== - -.. toctree:: - :maxdepth: 2 - - user_guide/index - examples/index - contributing - license - api/index - - References =========== diff --git a/docs/user_guide/installation.rst b/docs/installation.rst similarity index 100% rename from docs/user_guide/installation.rst rename to docs/installation.rst