test for python

This commit is contained in:
k.koide 2024-04-02 15:40:44 +09:00
parent 135d073dcd
commit fbe9669398
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
name: Build
name: Test
on:
push:
@ -25,6 +25,7 @@ jobs:
run: |
sudo apt-get -y update
sudo apt-get install -y build-essential cmake python3-pip pybind11-dev libeigen3-dev libfmt-dev libtbb-dev libomp-dev libpcl-dev libgtest-dev
pip install -U setuptools pytest numpy scipy
- name: Build
run: |
@ -32,4 +33,6 @@ jobs:
cmake .. -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON -DBUILD_WITH_TBB=ON -DBUILD_WITH_PCL=ON
cmake --build . -j$(nproc)
ctest -j$(nproc)
cd ..
python3 setup.py build && python3 setup.py install
pytest src/example/basic_registration.py