Update examples #567
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: 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 python3-numpy | |
# annoyingly seems like GitHub Actions as of 30 May 2023 will attempt to install | |
# numpy 1.25.0rc1 on Python 3.8, even though it requires Python 3.9+. | |
# specify particular version here as a workaround. | |
sudo pip3 install pytest numpy==1.22.0 scipy==1.10.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 |