update readme to include developer build instructions (#180) #439
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 | |
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: 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/ | |