Test Python π Versions + 3rd-party Deps #803
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
name: Test Python π Versions + 3rd-party Deps | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Python ${{ matrix.py }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
py: | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
- "3.8" | |
os: | |
- ubuntu-22.04 | |
steps: | |
- name: Setup python for tox | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Install tox | |
run: python -m pip install tox | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup python for test ${{ matrix.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Setup test suite | |
run: | | |
sudo apt-get update && sudo apt-get install -y portaudio19-dev | |
python_version="${{ matrix.py }}" | |
python_version="${python_version/./}" | |
tox -f "py$python_version" -vvvv --notest | |
- name: Run test suite | |
run: | | |
python_version="${{ matrix.py }}" | |
python_version="${python_version/./}" | |
tox -f "py$python_version" -vvvv --skip-pkg-install | |
env: | |
PYTEST_ADDOPTS: "-vv --durations=20" | |
CI_RUN: "yes" |