Port soil increment code to land-jedi_incr #11466
Workflow file for this run
This file contains hidden or 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: Unit Tests Within NCEP Global-Workflow | |
| on: [push, pull_request] | |
| jobs: | |
| ctests: | |
| runs-on: ubuntu-22.04 | |
| name: Run Unit Tests inside global-workflow with ctest | |
| steps: | |
| - name: Install pip dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install pycodestyle | |
| pip install netCDF4 | |
| pip install xarray | |
| - name: Install other dependencies | |
| run: | | |
| sudo mkdir -p /work/noaa # to trick workflow into thinking this is RDHPCS Orion | |
| - name: Checkout wxflow | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: NOAA-EMC/wxflow | |
| ref: develop | |
| path: wxflow | |
| - name: Install wxflow | |
| run: | | |
| cd wxflow | |
| pip install . | |
| - name: Checkout workflow | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: NOAA-EMC/global-workflow | |
| ref: develop | |
| path: global-workflow | |
| - name: Checkout GDASApp | |
| uses: actions/checkout@v3 | |
| with: | |
| path: global-workflow/sorc/gdas.cd | |
| - name: Install ecBuild | |
| run: | | |
| git clone https://github.com/ecmwf/ecbuild.git ecbuild | |
| cd ecbuild | |
| git checkout 3.8.2 | |
| mkdir bootstrap | |
| cd bootstrap | |
| ../bin/ecbuild .. | |
| sudo make install | |
| - name: Prefetch unit test data | |
| run: | | |
| TESTDATA_DIR="$GITHUB_WORKSPACE/test-data" | |
| CMAKE_FILE="$GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/test/CMakeLists.txt" | |
| FULLSHA="$(awk -F'"' '/^set\(SHA / {print $2; exit}' "$CMAKE_FILE")" | |
| if [[ -z "$FULLSHA" || ${#FULLSHA} -lt 6 ]]; then | |
| echo "Failed to parse unit test data SHA from $CMAKE_FILE" | |
| exit 1 | |
| fi | |
| SHORTSHA="${FULLSHA:0:6}" | |
| TAR="gdasapp-fix-${SHORTSHA}.tgz" | |
| mkdir -p "$TESTDATA_DIR" | |
| curl --fail --location --retry 5 --retry-all-errors --retry-delay 10 \ | |
| --output "$TESTDATA_DIR/$TAR" \ | |
| "https://ftp.emc.ncep.noaa.gov/static_files/public/GDASApp/$TAR" | |
| - name: Configure with cmake | |
| run: | | |
| mkdir $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build && cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build | |
| export GDASAPP_UNIT_TEST_DATA_PATH="$GITHUB_WORKSPACE/test-data" | |
| cmake -DBUILD_GDASBUNDLE=OFF -DWORKFLOW_TESTS=ON $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/ | |
| - name: Build GDASApp | |
| run: | | |
| cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build | |
| make | |
| - name: Run ctest | |
| run: | | |
| cd $GITHUB_WORKSPACE/global-workflow/sorc/gdas.cd/build | |
| ctest --output-on-failure |