-
Notifications
You must be signed in to change notification settings - Fork 284
47 lines (46 loc) · 1.41 KB
/
tox.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
- macos-latest
py:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
- "3.7"
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 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 MacOs
run: brew install libsndfile
if: matrix.os == 'MacOs'
- name: Install soundlibs 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.8'
- 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