Skip to content

Commit

Permalink
Expand workflows to test direct and custom conda builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kburns committed Oct 31, 2022
1 parent 457653f commit 167e28b
Showing 1 changed file with 110 additions and 8 deletions.
118 changes: 110 additions & 8 deletions .github/workflows/test_conda_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,74 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build_dedalus3:

v2_from_conda_forge:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
label: linux-64
- os: macos-latest
label: osx-64
name: v2 from conda-forge on ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- name: Setup miniforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
auto-activate-base: true
activate-environment: ""
- name: Build from conda-forge
shell: bash -l {0}
run: |
conda create -y -n dedalus2
conda activate dedalus2
conda env config vars set OMP_NUM_THREADS=1
conda env config vars set NUMEXPR_MAX_THREADS=1
conda install -y -c conda-forge dedalus
- name: Test build
shell: bash -l {0}
run: |
conda activate dedalus2
python3 -m dedalus test
v2_master_via_conda_forge:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
label: linux-64
- os: macos-latest
label: osx-64
name: v2-master via conda-forge on ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- name: Setup miniforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
auto-activate-base: true
activate-environment: ""
- name: Build from conda-forge
shell: bash -l {0}
run: |
conda create -y -n dedalus2
conda activate dedalus2
conda env config vars set OMP_NUM_THREADS=1
conda env config vars set NUMEXPR_MAX_THREADS=1
conda install -y -c conda-forge dedalus c-compiler "h5py=*=mpi*"
conda uninstall -y --force dedalus
CC=mpicc pip3 install --no-cache http://github.com/dedalusproject/dedalus/zipball/v2_master/
- name: Test build
shell: bash -l {0}
run: |
conda activate dedalus2
python3 -m dedalus test
v3_master_via_conda_forge:
strategy:
fail-fast: false
matrix:
Expand All @@ -20,7 +87,41 @@ jobs:
label: linux-64
- os: macos-latest
label: osx-64
name: Build dedalus3 on ${{ matrix.label }}
name: v3-master via conda-forge on ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- name: Setup miniforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
auto-activate-base: true
activate-environment: ""
- name: Build from conda-forge
shell: bash -l {0}
run: |
conda create -y -n dedalus3
conda activate dedalus3
conda env config vars set OMP_NUM_THREADS=1
conda env config vars set NUMEXPR_MAX_THREADS=1
conda install -y -c conda-forge dedalus c-compiler "h5py=*=mpi*"
conda uninstall -y --force dedalus
CC=mpicc pip3 install --no-cache http://github.com/dedalusproject/dedalus/zipball/master/
- name: Test build
shell: bash -l {0}
run: |
conda activate dedalus3
python3 -m dedalus test
v2_custom:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
label: linux-64
- os: macos-latest
label: osx-64
name: v2 custom script on ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand All @@ -33,13 +134,14 @@ jobs:
activate-environment: ""
- name: Run conda installation
shell: bash -l {0}
run: bash conda_install_dedalus3.sh
run: bash conda_install_dedalus2.sh
- name: Test conda installation
shell: bash -l {0}
run: |
conda activate dedalus3
conda activate dedalus2
python3 -m dedalus test
build_dedalus2:
v3_custom:
strategy:
fail-fast: false
matrix:
Expand All @@ -48,7 +150,7 @@ jobs:
label: linux-64
- os: macos-latest
label: osx-64
name: Build dedalus2 on ${{ matrix.label }}
name: v3 custom script on ${{ matrix.label }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand All @@ -61,9 +163,9 @@ jobs:
activate-environment: ""
- name: Run conda installation
shell: bash -l {0}
run: bash conda_install_dedalus2.sh
run: bash conda_install_dedalus3.sh
- name: Test conda installation
shell: bash -l {0}
run: |
conda activate dedalus2
conda activate dedalus3
python3 -m dedalus test

0 comments on commit 167e28b

Please sign in to comment.