2020-05-05 09:08:42 -07:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-21 09:54:59 -07:00
|
|
|
- name: Install python moduels
|
2020-05-21 10:12:23 -07:00
|
|
|
run: sudo apt update && sudo apt install -y libeigen3-dev python3-setuptools && pip3 install pybind11 pytest numpy scipy cython
|
2020-05-21 09:54:59 -07:00
|
|
|
- name: Compile Bybind
|
2020-05-14 06:47:22 -07:00
|
|
|
run: export CPATH=/usr/include/eigen3 && cd examples/python && source build.sh
|
2020-05-21 09:54:59 -07:00
|
|
|
- name: Test Bybind
|
2020-05-05 09:08:42 -07:00
|
|
|
run: |
|
2020-05-14 06:47:22 -07:00
|
|
|
cd examples/python
|
|
|
|
python3 -m pytest -s -v test.py
|
2020-05-21 09:54:59 -07:00
|
|
|
- name: Run cython
|
|
|
|
run: |
|
|
|
|
cd examples/cython
|
2020-05-21 10:39:20 -07:00
|
|
|
python3 setup.py build_ext --inplace && python3 -m pytest -s -v test.py
|