-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 904 Bytes
/
build.yaml
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
28
29
30
31
32
33
34
35
36
37
name: 'Build the software'
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
name: 'Build for ${{ matrix.os }}'
steps:
- name: 'Checkout code'
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: 'Build library egg'
run: |
sudo apt-get update
sudo apt-get install -y libeigen3-dev
cd python
python setup.py install --user
- name: 'Run tests'
run: |
pip install --user pytest numpy matplotlib
python -m pytest tests/test_CE.py
python -m pytest tests/test_EC.py
python -m pytest tests/test_Ei.py
python -m pytest tests/test_Er.py