sph:design_sph_filterbank introduce pinv and default to 'real' #235
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Cross-Platform Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build_and_test: | |
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade wheel | |
python -m pip install flake8 pytest | |
- name: Install system libraries | |
if: ${{ contains( runner.os, 'Linux' ) }} | |
run: | | |
sudo apt-get install libsndfile1 | |
#sudo apt-get install libportaudio2 | |
- name: Install package | |
run: python -m pip install -e . | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Set environment | |
if: ${{ contains( runner.os, 'macOS' ) }} | |
run: | | |
mkdir -p ~/.matplotlib/ | |
echo "backend : TkAgg" > ~/.matplotlib/matplotlibrc | |
- name: Import package | |
run: | | |
python -c "import spaudiopy; print('spaudio v:', spaudiopy.__version__)" | |
- name: Test with pytest | |
run: | | |
pytest -v --durations=0 --log-cli-level=INFO | |
docs: | |
name: Test building docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
#python -m pip install --upgrade wheel | |
python -m pip install -r docs/requirements.txt | |
- name: Install system libraries | |
run: | | |
sudo apt-get install libsndfile1 | |
#sudo apt-get install libportaudio2 | |
- name: Install package | |
run: python -m pip install -e . | |
- name: Build docs | |
run: | | |
python -m sphinx docs/source _build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ci-docs | |
path: _build/ | |