Add conda_prefix into cmake_prefix_path to CI builds #81
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: Conda Test Environment, with micromamba | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - development | |
| - v2.* | |
| pull_request: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: [ubuntu-latest] #, macos-latest] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: conda/environment.yaml | |
| init-shell: bash | |
| environment-name: uw-2.17 | |
| cache-environment: true | |
| #cache-downloads: true | |
| - name: Compile the code, run tests | |
| run: | | |
| micromamba env list | |
| micromamba list | |
| pip list | |
| pip install . --no-build-isolation | |
| #pytest ./docs/pytests/tests.py ./docs/pytests/test_examples.py | |
| shell: micromamba-shell {0} |