Skip to content

ci

ci #702

Workflow file for this run

name: Unit tests
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo rm -rf /home/linuxbrew
sudo apt-get update -y
sudo apt-get install libasound2-dev libsoundio-dev libsndfile1-dev fftw3-dev -y
sudo apt-get install python3 python3-setuptools python3-pip
# Requires setuptools >= 62.1 for `python setup.py test`, as earlier versions
# used a different build path to the .so file as located in tests/__init__.py
sudo pip3 install -U pytest numpy scipy setuptools>=62.1.0
- name: Configure
run: mkdir build && cd build && cmake ..
- name: Make
run: cd build && make -j8
- name: Python build
run: python3 setup.py build
- name: Python test
run: python3 setup.py test