Remove bad coordinates #273
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: build | |
on: | |
push: | |
pull_request: | |
jobs: | |
forward: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- exp: "offline_exf_seaice" | |
- exp: "global_ocean.cs32x15" | |
- exp: "tutorial_deep_convection" | |
- exp: "aim.5l_cs" | |
- exp: "isomip" | |
- exp: "global_ocean.90x40x15" | |
- exp: "tutorial_plume_on_slope" | |
- exp: "tutorial_advection_in_gyre" | |
- exp: "hs94.cs-32x32x5" | |
- exp: "tutorial_global_oce_biogeo" | |
- exp: "tutorial_global_oce_in_p" | |
- exp: "tutorial_cfc_offline" | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Get a docker image and set it running | |
run: | | |
docker pull oliverjahn/testreport-images:ubuntu_18_04_villon | |
docker run -v `pwd`:/MITgcm --name ubuntu_18_04-testreport -t -d oliverjahn/testreport-images:ubuntu_18_04_villon /bin/bash | |
- name: Run a test | |
env: | |
MITGCM_EXP: ${{ matrix.exp }} | |
run: | | |
. tools/ci/runtr.sh | |
python: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
include: | |
- python: "3.7" | |
env: py37 | |
- python: "3.8" | |
env: py38 | |
- python: "3.9" | |
env: py39 | |
- python: "3.10" | |
env: py310 | |
- python: "3.11" | |
env: py311 | |
- python: "3.12" | |
env: py312 | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Tox and other packages | |
run: | | |
pip install --upgrade pip | |
pip install tox | |
- name: Install netcdf tools | |
run: | | |
sudo apt-get update | |
sudo apt-get -qq install netcdf-bin | |
- name: Create download directories | |
run: mkdir -p baseline_images data/llc90 data/aste data/eccov3 data/global_ocean.90x40x15 data/global_ocean.cs32x15 | |
working-directory: utils/python/MITgcmutils/tests | |
- name: Download baseline images | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/baseline_images/{cs_pcol,cs_pcol_sphere,cs_pcol_sphere_pre330,llc_contour,llc_contourf,llc_pcol,llc_pcol_basemap,llc_pcol_stere,llc_pcol_xg}.png -o utils/python/MITgcmutils/tests/baseline_images/#1.png | |
- name: Download mds test data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/llc90/{Eta.0000000008,hFacC,XC,XG,YC,YG}.{data,meta} -o utils/python/MITgcmutils/tests/data/llc90/#1.#2 | |
- name: Download aste test data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/aste/grid.t0{01,02,04,05,07,08,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,36,37,38,39,41,42,43,44,45}.nc -o utils/python/MITgcmutils/tests/data/aste/grid.t0#1.nc | |
- name: Download eccov3 test data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/eccov3/dic_tave.0000025920.t[001-032].nc -o utils/python/MITgcmutils/tests/data/eccov3/dic_tave.0000025920.t#1.nc | |
- name: Download pickup test data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/global_ocean.90x40x15/pickup.ckptA.00{1,2,3,4,5,6,7,8,9}.00{1,2,3,4}.{data,meta} -o utils/python/MITgcmutils/tests/data/global_ocean.90x40x15/pickup.ckptA.00#1.00#2.#3 | |
- name: Download mnc test data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/global_ocean.cs32x15/{oceDiag,state,phiHyd,phiHydLow}.0000072000.t0{01,02,03,04,05,06,07,08,09,10,11,12}.nc -o utils/python/MITgcmutils/tests/data/global_ocean.cs32x15/#1.0000072000.t0#2.nc | |
- name: Download mnc grid data | |
uses: wei/[email protected] | |
with: | |
args: https://engaging-web.mit.edu/~jahn/MITgcmutils/data/global_ocean.cs32x15/grid.t0{01,02,03,04,05,06,07,08,09,10,11,12}.nc -o utils/python/MITgcmutils/tests/data/global_ocean.cs32x15/grid.t0#1.nc | |
- name: Run Tox | |
run: tox -e ${{ matrix.env }} | |
working-directory: utils/python/MITgcmutils | |
- name: Run scripts | |
run: tests/run-scripts ${{ matrix.env }} | |
working-directory: utils/python/MITgcmutils | |
- name: Upload gluemncbig output | |
uses: actions/upload-artifact@v2 | |
with: | |
name: gluemncbig | |
path: utils/python/MITgcmutils/*.nc | |
if: ${{ always() }} | |
openad: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- exp: "global_ocean.90x40x15" | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Get a docker image and set it running | |
run: | | |
docker pull mitgcm/mitgcm-openad-test:centos-test | |
docker run -i -t -v `pwd`:/MITgcm -d --name openad-testing --ulimit stack=-1:-1 --rm mitgcm/mitgcm-openad-test:centos-test /bin/bash | |
- name: Run testreport | |
env: | |
MITGCM_EXP: ${{ matrix.exp }} | |
MITGCM_DECMD: "docker exec -i openad-testing bash -lc" | |
MITGCM_TROPT: "-oad -devel -of=../tools/build_options/linux_amd64_gfortran -match 14" | |
MITGCM_INPUT_DIR_PAT: '/input_oad.*' | |
run: | | |
. tools/ci/runtr.sh | |
openad-other: | |
runs-on: ubuntu-latest | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'adjoint') }} | |
strategy: | |
matrix: | |
include: | |
- exp: "global_oce_latlon" | |
- exp: "halfpipe_streamice" | |
- exp: "hs94.1x64x5" | |
- exp: "isomip" | |
- exp: "tutorial_global_oce_biogeo" | |
- exp: "tutorial_global_oce_optim" | |
- exp: "tutorial_tracer_adjsens" | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Get a docker image and set it running | |
run: | | |
docker pull mitgcm/mitgcm-openad-test:centos-test | |
docker run -i -t -v `pwd`:/MITgcm -d --name openad-testing --ulimit stack=-1:-1 --rm mitgcm/mitgcm-openad-test:centos-test /bin/bash | |
- name: Run testreport | |
env: | |
MITGCM_EXP: ${{ matrix.exp }} | |
MITGCM_DECMD: "docker exec -i openad-testing bash -lc" | |
MITGCM_TROPT: "-oad -devel -of=../tools/build_options/linux_amd64_gfortran -match 14" | |
MITGCM_INPUT_DIR_PAT: '/input_oad.*' | |
run: | | |
. tools/ci/runtr.sh | |
doc_html: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: install dependencies | |
run: tools/ci/install_doc_dependencies.sh | |
- name: build docs | |
run: | | |
cd doc | |
sphinx-build -Wa -b html -d _build_doctrees . _build/html | |
doc_latex: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: install dependencies | |
run: tools/ci/install_doc_dependencies.sh | |
- name: build docs | |
run: | | |
cd doc | |
make clean latexpdf LATEXOPTS="-interaction=nonstopmode -halt-on-error" | |