Skip to content

maintenance update

maintenance update #10

name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build sophus_pybind on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- name : Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Install dependencies
shell: bash
run: |
# Update & upgrade package lists
sudo apt-get update -y
sudo apt-get upgrade
# Deal with Github CI limitation
# https://github.com/actions/runner-images/issues/6399#issuecomment-1285011525
sudo apt install -y libunwind-dev
# Generic dependencies
sudo apt-get install cmake
# Clean APT cache
sudo apt-get clean
- name: Install sophus_pybind
shell: bash
run: |
sudo apt-get install libpython3-dev python3-pip
sudo pip3 install numpy pytest
# Build and install Python bindings
pip3 install .
- name: Run sophus_pybind tests
shell: bash
run: python3 -m pytest sophus_pybind/tests/sophusPybindTests.py