Skip to content

Commit

Permalink
conditionalize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 15, 2024
1 parent 3123dca commit 2402ef9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,32 @@ jobs:

- name: Install
shell: bash -l {0}
run: pip install . -Ccmake.define.WITH_TESTS=ON .
run: |
pip install . -Ccmake.define.WITH_TESTS=ON .
- name: Test Unix
shell: bash -l {0}
if: matrix.platform != 'windows-latest'
run: |
export PYTHONHOME=$CONDA_PREFIX
export WHEEL_DIR=$(python -m "scikit_build_core.builder.wheel_tag")
export PDAL_DRIVER_PATH=`pwd`/build/$WHEEL_DIR
echo $PDAL_DRIVER_PATH
ls $PDAL_DRIVER_PATH
pdal --drivers
$PDAL_DRIVER_PATH/pdal_filters_python_test
$PDAL_DRIVER_PATH/pdal_io_numpy_test
- name: Test
- name: Test Windows
if: matrix.platform == 'windows-latest'
shell: bash -l {0}
env:
EXT: ${{ matrix.os == 'windows-latest' && '.exe' || '' }}
run: |
export PYTHONHOME=$CONDA_PREFIX
export PDAL_DRIVER_PATH=`pwd`/build/$(python -m "scikit_build_core.builder.wheel_tag")
export WHEEL_DIR=$(python -m "scikit_build_core.builder.wheel_tag")
export PDAL_DRIVER_PATH=`pwd`/build/$WHEEL_DIR/Release
echo $PDAL_DRIVER_PATH
ls $PDAL_DRIVER_PATH
pdal --drivers
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ build-backend = "scikit_build_core.build"


[tool.scikit-build]
build-dir = "build/{wheel_tag}"
build-dir = "build/{wheel_tag}/{build_type}"
sdist.exclude = [".github"]
sdist.cmake = true
cmake.build-type = "Release"
Expand Down

0 comments on commit 2402ef9

Please sign in to comment.