Skip to content

addressing pr comments - undoing incorrect reformat, adding entry for… #411

addressing pr comments - undoing incorrect reformat, adding entry for…

addressing pr comments - undoing incorrect reformat, adding entry for… #411

Workflow file for this run

name: tox
on:
push:
pull_request:
jobs:
test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
py:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
include:
- os: macos-latest-xlarge
py: "3.10.11"
- os: macos-latest-xlarge
py: "3.11.8"
steps:
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- uses: actions/checkout@v3
- name: Install soundlibs Ubuntu
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y --fix-missing pkg-config libsndfile1 sox
if: matrix.os == 'ubuntu-latest'
- name: Install soundlibs MacOs
run: brew install libsndfile llvm libomp sox
if: matrix.os == 'macos-latest-xlarge'
- name: Install soundlibs Windows
run: choco install libsndfile sox.portable
if: matrix.os == 'windows-latest'
- name: Upgrade pip
run: python -m pip install -U pip
- 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.10'
- name: Run test suite
run: tox -c tox.ini -e py,manifest,full
- name: Check that basic-pitch can be run as a commandline
run: pip3 install -e . && basic-pitch --help