Skip to content

build(deps): bump extern/fabm from 280b2dd to 5b3574b #72

build(deps): bump extern/fabm from 280b2dd to 5b3574b

build(deps): bump extern/fabm from 280b2dd to 5b3574b #72

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-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Install dependencies
run: sudo apt-get install mpich
- name: Clone pygetm
uses: actions/checkout@v4
with:
repository: BoldingBruggeman/getm-rewrite
submodules: recursive
path: getm-rewrite
- name: Clone fabmos
uses: actions/checkout@v4
with:
submodules: recursive
path: fabmos
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: getm-rewrite/environment-min.yml
activate-environment: pygetm
- name: Compile and install pygetm
run: |
cd getm-rewrite
source ./install
- name: Compile and install pyfabm
run: |
pip install -vv ./fabmos/extern/fabm
- name: Compile and install fabmos
run: |
pip install -vv ./fabmos
- name: Install fabmos dependencies
run: |
conda install -c conda-forge h5py
- 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 ../fabmos/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 ../fabmos/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"]
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
- name: Build and install
run: pip install . -vv