fix: use dpkg-query for libportaudio detection in install.sh (#9) #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: sudo apt-get install -y libportaudio2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| cache-dependency-glob: "pyproject.toml" | |
| - name: Run tests via tox | |
| run: | | |
| TOXENV="py$(echo '${{ matrix.python-version }}' | tr -d '.')" | |
| uvx --with "tox-uv>=1" tox -e "${TOXENV}" | |
| test-py314: | |
| name: Python 3.14 (allowed failure) | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install system dependencies | |
| run: sudo apt-get install -y libportaudio2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| cache-dependency-glob: "pyproject.toml" | |
| - name: Run tests via tox | |
| run: uvx --with "tox-uv>=1" tox -e py314 |