Skip to content

update deprecated miniforge-variant to Miniforge #440

update deprecated miniforge-variant to Miniforge

update deprecated miniforge-variant to Miniforge #440

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: ${{ matrix.os }} py${{ matrix.python-version }} numpy ${{ matrix.numpy-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.24', '2.0']
exclude:
- python-version: '3.12'
numpy-version: '1.24'
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: Miniforge3
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/