Skip to content

do not test conda build with ogs on windows, as that requires patch #84

do not test conda build with ogs on windows, as that requires patch

do not test conda build with ogs on windows, as that requires patch #84

Workflow file for this run

name: Build and test
on:
push:
branches:
- "**"
pull_request:
jobs:
gfortran:
runs-on: ${{ matrix.os }}
env:
RDMAV_FORK_SAFE: 1
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-13", "macos-latest"] #, "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Clone fabmos
uses: actions/checkout@v4
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
activate-environment: fabmos
- name: Compile and install fabmos
run: |
pip install -v .
- name: Download and extract TMM setup
run: |
wget -q http://kelvin.earth.ox.ac.uk/spk/Research/TMM/TransportMatrixConfigs/MITgcm_2.8deg.tar
tar -xvf MITgcm_2.8deg.tar
- name: Run TMM setup in serial
run: |
cd MITgcm_2.8deg
python ../examples/tmm/tracer.py --stop_time="2000-02-01 00:00:00"
- name: Run TMM setup in parallel
run: |
cd MITgcm_2.8deg
mpiexec -n 2 python ../examples/tmm/tracer.py --stop_time="2000-02-01 00:00:00"
conda:
runs-on: ${{ matrix.os }}
env:
RDMAV_FORK_SAFE: 1
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Clone fabmos
uses: actions/checkout@v4
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: ${{ matrix.os == 'windows-latest' && 'environment-win.yml' || 'environment.yml' }}
activate-environment: fabmos
- name: Customize Windows build
if: matrix.os == 'windows-latest'
run: |
echo '[build_ext]' > setup.cfg
echo 'cmake_opts=-G "MSYS Makefiles"' >> setup.cfg
mv extern/fabm/extern/ersem extern/fabm/extern/ersem_bck
mv extern/fabm/extern/ogs extern/fabm/extern/ogs_bck
- name: Build and install
run: pip install . -vv