forked from E3SM-Project/E3SM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'E3SM-Project:master' into master
- Loading branch information
Showing
332 changed files
with
14,941 additions
and
5,566 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: mkatmsrffile | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'components/eam/tools/mkatmsrffile/mkatmsrffile.py' | ||
schedule: | ||
- cron: '00 15 * * 2' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
mkatmsrffile-test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
outputs: | ||
event_name: ${{ github.event_name }} | ||
steps: | ||
- | ||
name: Repository checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
show-progress: false | ||
submodules: false | ||
- | ||
name: Conda setup | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
activate-environment: "envmkatmsrffile" | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
mamba-version: "*" | ||
channel-priority: strict | ||
auto-update-conda: true | ||
python-version: 3.11 | ||
- | ||
name: Install dependencies | ||
run: | | ||
echo $CONDA_PREFIX | ||
mamba install -y nco xarray numba numpy netcdf4 | ||
- | ||
name: Run tests | ||
working-directory: components/eam/tools/mkatmsrffile | ||
run: | | ||
echo $CONDA_PREFIX | ||
wget https://web.lcrc.anl.gov/public/e3sm/inputdata/atm/cam/chem/trop_mozart/dvel/clim_soilw.nc | ||
wget https://web.lcrc.anl.gov/public/e3sm/inputdata/atm/cam/chem/trop_mozart/dvel/regrid_vegetation.nc | ||
wget https://web.lcrc.anl.gov/public/e3sm/inputdata/atm/cam/chem/trop_mozart/dvel/map_1x1_to_ne30pg2_traave_c20240903.nc | ||
python mkatmsrffile.py --map_file=map_1x1_to_ne30pg2_traave_c20240903.nc --vegetation_file=regrid_vegetation.nc --soil_water_file=clim_soilw.nc --dst_grid=ne30pg2 | ||
mkatmsrffile-notify: | ||
needs: mkatmsrffile-test | ||
if: ${{ failure() && needs.mkatmsrffile-test.outputs.event_name != 'pull_request' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create issue | ||
run: | | ||
previous_issue_number=$(gh issue list \ | ||
--label "$LABELS" \ | ||
--json number \ | ||
--jq '.[0].number') | ||
if [[ -n $previous_issue_number ]]; then | ||
gh issue comment "$previous_issue_number" \ | ||
--body "$BODY" | ||
else | ||
gh issue create \ | ||
--title "$TITLE" \ | ||
--assignee "$ASSIGNEES" \ | ||
--label "$LABELS" \ | ||
--body "$BODY" | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_REPO: ${{ github.repository }} | ||
TITLE: mkatmsrffile test failure | ||
ASSIGNEES: whannah1 | ||
LABELS: bug,notify-mkatmsrffile-gh-action | ||
BODY: | | ||
Workflow failed! There's likely an issue in the mkatmsrffile tool! For more information, please see: | ||
- Workflow URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} (number ${{ github.run_number }}, attempt ${{ github.run_attempt }}) | ||
- Workflow SHA: ${{ github.sha }} |
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
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
Submodule cime
updated
71 files
Oops, something went wrong.