Test conda installation #850
This file contains 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: Test conda installation | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '42 23 * * *' | |
jobs: | |
conda_test: | |
name: Test conda installation | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
auto-activate-base: true | |
auto-update-conda: true | |
conda-remove-defaults: true | |
- name: Install cashocs | |
run: conda create -n cashocs cashocs python=3.12 | |
- name: Test if package was installed properly | |
run: | | |
conda run -n cashocs python -c "import cashocs; cashocs.regular_mesh(16)" | |
conda run -n cashocs mpirun -n 2 python -c "import cashocs; cashocs.regular_mesh(16)" | |