Reformat. #135
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: tox | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
name: test ${{ matrix.py }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- Ubuntu | |
- Windows | |
- macOS | |
py: | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
steps: | |
- name: Setup python for test ${{ matrix.py }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.py }} | |
- uses: actions/checkout@v3 | |
- name: Install soundlibs on Ubuntu | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y --fix-missing pkg-config libsndfile1 | |
if: matrix.os == 'Ubuntu' | |
- name: Install soundlibs on macOS | |
run: brew install libsndfile | |
if: matrix.os == 'macOS' | |
- name: Install soundlibs on Windows | |
run: choco install libsndfile | |
if: matrix.os == 'Windows' | |
- name: Install tox | |
run: python -m pip install tox | |
# We will only check this on the minimum python version | |
- name: Check formatting, lint and mypy | |
run: tox -c tox.ini -e check-formatting,lint,mypy | |
if: matrix.py == '3.9' | |
- name: Run test suite | |
run: tox -c tox.ini -e py,manifest |