-
Notifications
You must be signed in to change notification settings - Fork 16
27 lines (25 loc) · 917 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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