Skip to content

Test conda installation #850

Test conda installation

Test conda installation #850

Workflow file for this run

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)"