Fix building with newer Cython #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build-n-test-linux: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
# - os: ubuntu-16.04 | |
# python-version: "3.6" | |
# numpy-version: "1.13" | |
- os: ubuntu-18.04 | |
python-version: "3.7" | |
numpy-version: "1.15" | |
- os: ubuntu-20.04 | |
python-version: "3.8" | |
numpy-version: "1.19" | |
- os: ubuntu-22.04 | |
python-version: "3.10" | |
numpy-version: "1.21" | |
# - os: ubuntu-16.04 | |
# python-version: "2.7" | |
# numpy-version: "1.13" | |
- os: ubuntu-18.04 | |
python-version: "2.7" | |
numpy-version: "1.15" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install PCL | |
run: | | |
sudo apt update | |
sudo apt install -y libpcl-dev | |
- name: Install dependencies | |
run: | | |
python -m pip install numpy==${{ matrix.numpy-version }} | |
python -m pip install -U cython scikit-build pytest | |
- name: Build package | |
run: | | |
python setup.py develop | |
- name: Test with pytest | |
run: | | |
# visualizer is not available in container | |
pytest test/ --ignore test/test_visualizer.py |