Skip to content

Commit

Permalink
CI churn
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 16, 2024
1 parent cb3f32a commit 306a8fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: testenv
channels:
- conda-forge
dependencies:
- scikit-build
- scikit-build-core
- numpy
- compilers
- pybind11
Expand Down
43 changes: 6 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,60 +35,29 @@ jobs:
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 .
run: |
pip install -vv .
- name: Install python-pdal-plugins
working-directory: ./plugins
run: pip install .
run: pip install -vv .

- name: Test
run: |
export PDAL_DRIVER_PATH=$(python -c "import os, skbuild; print(os.path.join('plugins', skbuild.constants.SKBUILD_DIR(), 'cmake-build'))")
export PDAL_DRIVER_PATH=$(python -c "import pdal; print(pdal.__path__[0])")
pdal --drivers --debug
py.test -v test/
- name: Build source distribution
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
run: python setup.py sdist

- name: Upload distribution(s)
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-py${{ matrix.python-version }}
path: ./dist/*

publish:
runs-on: ubuntu-latest
needs: [build]

steps:
- name: Download distributions
uses: actions/download-artifact@v3
with:
path: ./artifacts

- name: Move artifacts to dist
run: |
mkdir dist
find ./artifacts -type f -exec mv {} ./dist \;
tree ./dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: ./dist
verbose: true

0 comments on commit 306a8fa

Please sign in to comment.