undoing mistake in CI yml #102
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- py311 | |
tags: | |
pull_request: | |
jobs: | |
tests: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- name: Python 3.9.xx with minimal dependencies | |
os: ubuntu-latest | |
python: 3.9.21 | |
toxenv: py39-test | |
- name: Python 3.9.xx with all optional dependencies | |
os: ubuntu-latest | |
python: 3.9.21 | |
toxenv: py39-test-alldeps | |
toxargs: -v --develop | |
toxposargs: -W error::ResourceWarning | |
- name: Python 3.9.xx with numpy 1.24 and full coverage | |
os: ubuntu-latest | |
python: 3.9.21 | |
toxenv: py39-test-alldeps-numpy124-cov | |
- name: Python 3.9.xx with oldest supported version of all dependencies | |
os: ubuntu-16.04 | |
python: 3.9.21 | |
toxenv: py39-test-oldestdeps | |
- name: Python 3.10.xx with minimal dependencies | |
os: ubuntu-latest | |
python: 3.10.16 | |
toxenv: py310-test | |
- name: Python 3.10.xx with all optional dependencies | |
os: ubuntu-latest | |
python: 3.10.16 | |
toxenv: py310-test-alldeps | |
toxargs: -v --develop | |
toxposargs: -W error::ResourceWarning | |
- name: Python 3.10.xx with numpy 1.24 and full coverage | |
os: ubuntu-latest | |
python: 3.10.16 | |
toxenv: py310-test-alldeps-numpy124-cov | |
- name: Python 3.10.xx with numpy 2.10 and full coverage | |
os: ubuntu-latest | |
python: 3.10.16 | |
toxenv: py310-test-alldeps-numpy210-cov | |
- name: Python 3.10.xx with oldest supported version of all dependencies | |
os: ubuntu-16.04 | |
python: 3.10.16 | |
toxenv: py310-test-oldestdeps | |
- name: Python 3.11.xx with minimal dependencies | |
os: ubuntu-latest | |
python: 3.11.11 | |
toxenv: py311-test | |
- name: Python 3.11.xx with all optional dependencies | |
os: ubuntu-latest | |
python: 3.11.11 | |
toxenv: py311-test-alldeps | |
toxargs: -v --develop | |
toxposargs: -W error::ResourceWarning | |
- name: Python 3.11.xx with numpy 1.24 and full coverage | |
os: ubuntu-latest | |
python: 3.11.11 | |
toxenv: py311-test-alldeps-numpy124-cov | |
- name: Python 3.11.xx with numpy 2.10 and full coverage | |
os: ubuntu-latest | |
python: 3.11.11 | |
toxenv: py311-test-alldeps-numpy210-cov | |
- name: Python 3.11.xx with oldest supported version of all dependencies | |
os: ubuntu-16.04 | |
python: 3.11.11 | |
toxenv: py311-test-oldestdeps | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install language-pack-de and tzdata | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get install language-pack-de tzdata | |
- name: Install pyo dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get install portaudio19-dev libsndfile1-dev libportmidi-dev liblo-dev | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade tox codecov | |
- name: Run tests | |
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }} | |
- name: Upload coverage to codecov | |
if: ${{ contains(matrix.toxenv,'-cov') }} | |
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
with: | |
file: ./coverage.xml | |
allowed_failures: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Code style checks | |
os: ubuntu-latest | |
python: 3.x | |
toxenv: codestyle | |
- name: (Allowed Failure) Python 3.11 with dev version of key dependencies | |
os: ubuntu-latest | |
python: 3.11 | |
toxenv: py311-test-devdeps | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install language-pack-de and tzdata | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get install language-pack-de tzdata | |
- name: Install pyo dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: sudo apt-get install portaudio19-dev libsndfile1-dev libportmidi-dev liblo-dev | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade tox codecov | |
- name: Run tests | |
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }} | |