Conda install #159
Workflow file for this run
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: Conda install | |
on: | |
# Uncomment the below 'push' to trigger on push | |
#push: | |
# branches: | |
# - "**" | |
schedule: | |
# '*' is a special character in YAML, so string must be quoted | |
- cron: "0 2 * * WED" | |
workflow_dispatch: ~ | |
jobs: | |
conda-install: | |
name: Install and test | |
strategy: | |
matrix: | |
# NOTE: Re-enable windows-2022 after iimpi libfabric.dll issue fixed. | |
os: [ubuntu-latest, macos-13, macos-14] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
# This is necessary to ensure conda environment is activated in every step. | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install DOLFINx with MPICH (Unix-like) | |
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }} | |
run: | | |
conda install -c conda-forge fenics-dolfinx mpich | |
- name: Install DOLFINx (Windows) | |
if: ${{ runner.os == 'Windows' }} | |
run: | | |
conda install -c conda-forge fenics-dolfinx | |
- name: Test | |
run: | | |
conda info | |
conda list | |
mpiexec --version | |
mpiexec -v -np 1 python -c "from mpi4py import MPI; import dolfinx; dolfinx.mesh.create_rectangle(comm=MPI.COMM_WORLD, points=((0, 0), (2, 1)), n=(32, 16))" | |
mpiexec -v -np 2 python -c "from mpi4py import MPI; import dolfinx; dolfinx.mesh.create_rectangle(comm=MPI.COMM_WORLD, points=((0, 0), (2, 1)), n=(32, 16))" |