File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 1515 - name : Set up Python
1616 uses : actions/setup-python@v5
1717 with :
18- python-version : ' 3.13 '
18+ python-version : ' 3.12 '
1919 cache : ' pip'
2020 - name : Install NetCDF
2121 run : sudo apt-get update && sudo apt-get install -y libnetcdf-dev libnetcdff-dev
@@ -30,18 +30,16 @@ jobs:
3030 - name : Pin esmpy to ESMF tag
3131 run : |
3232 set -euo pipefail
33- MK="$HOME/ESMF/lib/esmf.mk"
34- VER=$(awk -F= '/^ESMF_VERSION_STRING[[:space:]]*=/{gsub(/[[:space:]]*/,"",$2); print $2}' "$MK")
35- # Normalize to plain semver if needed (drop anything after first non-semver char)
36- VER_CLEAN=$(python - "$VER" <<'PY'
37- import re, sys
38- v=sys.argv[1]
39- m=re.match(r'^(\d+\.\d+\.\d+)', v)
40- print(m.group(1) if m else v)
41- PY
42- )
43- TAG="v${VER_CLEAN}"
44- echo "Detected ESMF ${VER} -> using ESMPy tag ${TAG}"
33+ # VER=$(awk -F= '/^ESMF_VERSION_STRING[[:space:]]*=/{gsub(/[[:space:]]*/,"",$2); print $2}' "$MK")
34+ # # Normalize to plain semver if needed (drop anything after first non-semver char)
35+ # VER_CLEAN=$(python - "$VER" <<'PY'
36+ # import re, sys
37+ # #
38+ # print(m.group(1) if m else v)
39+ # PY
40+ # )
41+ TAG="v8.9.0"
42+ echo "using ESMPy tag ${TAG}"
4543
4644 # remove any existing esmpy dep and add the exact git subdir tag
4745 poetry remove esmpy || true
You can’t perform that action at this time.
0 commit comments