Skip to content

parameterize numpy testing #420

parameterize numpy testing

parameterize numpy testing #420

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']
numpy-version: ['1.22', '2.0']
exclude:
- python-version: '3.12'
- sidx-version: '1.22'

Check failure on line 31 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 31, Col: 13): Matrix exclude key 'sidx-version' does not match any key within the matrix
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 numpy ${{ matrix.numpy-version }}
run: |
mamba install -y numpy=${{ matrix.numpy-version }}
- 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-driver-path)
export PDAL_PLUGIN_PATH=$(python -m pdal --pdal-plugin-path)
echo "PDAL_DRIVER_PATH $PDAL_DRIVER_PATH"
echo "PDAL_PLUGIN_PATH $PDAL_PLUGIN_PATH"
export PDAL_DRIVER_PATH=$PDAL_PLUGIN_PATH:$PDAL_DRIVER_PATH
python -m pdal
pdal --drivers --debug
py.test -v test/