Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python testing workflow. #327

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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-10.15]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "pypy-3.7"
- "pypy-3.8"
architecture: ["x86", "x64"]
exclude:
- os: macos-10.15 # Can't compile Numpy for this implementation.
python-version: "pypy-3.7"
- os: macos-10.15
architecture: "x86"
- os: ubuntu-20.04
architecture: "x86"

steps:
- name: Install APT dependencies
if: runner.os == 'Linux'
run: 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: Install editable package
run: pip install --editable . --verbose
- name: Run tests
run: python -m pytest