feat: 0.6.1_test #73
This file contains hidden or 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: cicd_test_windows | |
| on: | |
| # Run each time some code is pushed on any branch | |
| push: | |
| branches: | |
| - '**' | |
| paths-ignore: | |
| - 'doc/**' | |
| jobs: | |
| build_and_run_tests: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout branch | |
| uses: actions/checkout@v4 | |
| # See https://github.com/marketplace/actions/setup-micromamba | |
| - name: setup-micromamba | |
| uses: mamba-org/setup-micromamba@v2.0.4 | |
| with: | |
| environment-file: environment.yml | |
| environment-name: pdal_ign_plugin # activate the environment | |
| cache-environment: false | |
| cache-downloads: true | |
| generate-run-shell: true | |
| shell: cmd | |
| - name: compile_plugins | |
| run: | | |
| micromamba run -n pdal_ign_plugin mkdir build | |
| micromamba run -n pdal_ign_plugin cmd /c "cd build && cmake -DCONDA_PREFIX=%MAMBA_ROOT_PREFIX% -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%MAMBA_ROOT_PREFIX%\\envs\pdal_ign_plugin\Library\ ../" | |
| micromamba run -n pdal_ign_plugin cmd /c "cd build && cmake --build . --config Release --target install" | |
| - name: Show PDAL drivers with PDAL_DRIVER_PATH | |
| run: | | |
| micromamba run -n pdal_ign_plugin cmd /c "echo PDAL_DRIVER_PATH: %PDAL_DRIVER_PATH% && pdal --drivers" | |
| - name: run tests | |
| run: | | |
| micromamba run -n pdal_ign_plugin cmd /c "echo PDAL_DRIVER_PATH: %PDAL_DRIVER_PATH% && python -m pytest -s" |