Merge pull request #409 from mcclure/numpy-explicit-require #136
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: Python Package | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macos-11] | |
python-version: | |
- "3.6" | |
- "3.7" | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "pypy-3.7" | |
- "pypy-3.8" | |
architecture: ["x86", "x64"] | |
exclude: | |
- os: macos-11 # No Numpy binary wheel | |
python-version: "pypy-3.7" | |
- os: macos-11 | |
architecture: "x86" | |
- os: ubuntu-20.04 | |
architecture: "x86" | |
steps: | |
- name: Install APT dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libsndfile1 | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.architecture }} | |
- name: Install requirements | |
run: pip install numpy pytest | |
- name: "Workaround: Generate _soundfile.py explicitly" | |
run: | | |
pip install cffi>=1.0 | |
python soundfile_build.py | |
- name: Install editable package | |
run: pip install --editable . --verbose | |
- name: Run tests | |
run: python -m pytest |