2020-05-04 04:43:07 -07:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Eigen and Pybind11
|
2020-05-04 04:51:57 -07:00
|
|
|
run: sudo apt update && sudo apt install -y libeigen3-dev && pip3 install pybind11 pytest numpy scipy
|
2020-05-04 04:43:07 -07:00
|
|
|
- name: Compile
|
2020-05-04 04:50:51 -07:00
|
|
|
run: export CPATH=/usr/include/eigen3 && cd python && source build.sh
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
cd python
|
|
|
|
python3 -m pytest -s -v test.py
|