Update rust_on_three_oses.yml #112
This file contains 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
# A GitHub Action to demonstrate how to run pyaudio on Python 3.13 before its release in Oct. 2024 | |
name: pyaudio_on_py3_13 | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
pyaudio_on_py3_13: | |
strategy: | |
fail-fast: false | |
matrix: | |
# https://github.com/CristiFati/pyaudio/blob/master/INSTALL | |
os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest] | |
python-version: [3.12, 3.13, 3.14] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Failing step | |
id: demo | |
if: matrix.python-version == '3.14' | |
run: exit 1 | |
- name: The demo step has failed | |
if: ${{ failure() && steps.demo.conclusion == 'failure' && matrix.python-version == '3.14'}} | |
run: steps.demo.conclusion = 'success' | |
- if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install --yes portaudio19-dev # libasound-dev python3-pyaudio | |
- if: runner.os == 'macOS' | |
run: | | |
brew install portaudio | |
- if: runner.os == 'Windows' | |
shell: bash | |
run: | | |
systeminfo || true | |
vcpkg install portaudio:x86-windows-static | |
vcpkg install portaudio:x64-windows-static | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install pyaudio |