Updates to README #83
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: Build and Test | |
| on: | |
| pull_request: | |
| branches: [ master, main ] | |
| jobs: | |
| test: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Miniconda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| auto-update-conda: true | |
| python-version: 3.12 | |
| miniforge-version: latest | |
| environment-file: python/environment.yml | |
| activate-environment: parcel-dev | |
| - name: Verify conda environment | |
| shell: bash -el {0} | |
| run: | | |
| conda info | |
| which python | |
| python --version | |
| python -c "import numpy; import h5py; print('Packages OK')" | |
| - name: Configure CMake | |
| shell: bash -el {0} | |
| run: | | |
| PYTHON_PATH=$(which python) | |
| echo "Using Python: $PYTHON_PATH" | |
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DPython3_EXECUTABLE=$PYTHON_PATH | |
| - name: Build | |
| shell: bash -el {0} | |
| run: cmake --build build --config Release | |
| - name: Run tests | |
| shell: bash -el {0} | |
| run: | | |
| cd build | |
| ctest --verbose --output-on-failure -C Release |