Skip to content

Commit ad56e12

Browse files
HexDecimalbastibe
authored andcommitted
Add Python testing workflow.
1 parent 8cc732a commit ad56e12

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Python Package
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-20.04, windows-2019, macos-10.15]
12+
python-version:
13+
- "3.6"
14+
- "3.7"
15+
- "3.8"
16+
- "3.9"
17+
- "3.10"
18+
- "pypy-3.7"
19+
- "pypy-3.8"
20+
architecture: ["x86", "x64"]
21+
exclude:
22+
- os: macos-10.15 # Can't compile Numpy for this implementation.
23+
python-version: "pypy-3.7"
24+
- os: macos-10.15
25+
architecture: "x86"
26+
- os: ubuntu-20.04
27+
architecture: "x86"
28+
29+
steps:
30+
- name: Install APT dependencies
31+
if: runner.os == 'Linux'
32+
run: sudo apt-get install libsndfile1
33+
- uses: actions/checkout@v2
34+
with:
35+
submodules: true
36+
- uses: actions/setup-python@v2
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
architecture: ${{ matrix.architecture }}
40+
- name: Install requirements
41+
run: pip install numpy pytest
42+
- name: Install editable package
43+
run: pip install --editable . --verbose
44+
- name: Run tests
45+
run: python -m pytest

0 commit comments

Comments
 (0)