diff --git a/.github/workflows/test_conda_builds.yml b/.github/workflows/test_conda_builds.yml index a3a2713..f61bed4 100644 --- a/.github/workflows/test_conda_builds.yml +++ b/.github/workflows/test_conda_builds.yml @@ -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: @@ -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 @@ -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: @@ -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 @@ -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