Skip to content

Commit

Permalink
separate build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Apr 2, 2024
1 parent bf7faf5 commit a24c716
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,27 @@ jobs:
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
- name: Build (C++)
run: |
mkdir build && cd build
cmake .. -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON -DBUILD_WITH_TBB=ON -DBUILD_WITH_PCL=ON
cmake .. -DBUILD_TESTS=ON -DBUILD_EXAMPLES=ON -DBUILD_BENCHMARKS=ON -DBUILD_WITH_TBB=ON -DBUILD_WITH_PCL=ON -DENABLE_COVERAGE=ON
cmake --build . -j$(nproc)
- name: Test (C++)
run: |
ctest -j$(nproc)
- name: Build (Python)
run: |
cd ..
python3 setup.py build && python3 setup.py install --user
- name: Test
run: |
pytest src/example/basic_registration.py
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: koide3/small_gicp

0 comments on commit a24c716

Please sign in to comment.