Skip to content

Commit

Permalink
coverage ci
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Apr 2, 2024
1 parent 2ba2587 commit bf7faf5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Coverage

on:
push:
branches: [ master, coverage ]
paths-ignore: '**.md'
pull_request:
branches: [ master, coverage ]
paths-ignore: '**.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
coverage:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PAT }}
submodules: recursive

- name: Install Dependencies
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: |
mkdir build && cd build
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 --user
pytest src/example/basic_registration.py

0 comments on commit bf7faf5

Please sign in to comment.