Skip to content

Set Numpy floor to 1.22 and NPY_NO_DEPRECATED_API NPY_1_22_API_VERSION #377

Set Numpy floor to 1.22 and NPY_NO_DEPRECATED_API NPY_1_22_API_VERSION

Set Numpy floor to 1.22 and NPY_NO_DEPRECATED_API NPY_1_22_API_VERSION #377

Workflow file for this run

name: Build
on:
pull_request:
branches:
- '*'
push:
branches:
- '*'
release:
types:
- published
defaults:
run:
shell: bash -l -eo pipefail {0}
jobs:
build:
name: Build ${{ matrix.os }} py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Check out python-pdal
uses: actions/checkout@v4
- name: Check out python-pdal-plugins
uses: actions/checkout@v4
with:
repository: PDAL/python-plugins
path: ./plugins
ref: main
- name: Setup micromamba
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: ${{ matrix.python-version }}
use-mamba: true
auto-update-conda: true
environment-file: .github/environment.yml
- name: Install python-pdal
run: |
pip install -vv . --no-deps --no-build-isolation
- name: Install python-pdal-plugins
working-directory: ./plugins
run: pip install -vv . --no-deps --no-build-isolation
- name: Test
run: |
export PDAL_DRIVER_PATH=$(python -m pdal --pdal-plugin-path)
echo $PDAL_DRIVER_PATH
pdal --drivers --debug
py.test -v test/