Create IOPForcing ATM process #241
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: eamxx-scripts | |
on: | |
# Runs on PRs against master, but only if they touch eamxx scripts | |
pull_request: | |
branches: [ master ] | |
types: [opened, synchronize, ready_for_review, reopened] | |
paths: | |
- components/eamxx/scripts/** | |
- components/eamxx/cime_config/*.py | |
- .github/workflows/eamxx-scripts-tests.yml | |
- externals/ekat/** | |
- externals/scorpio/** | |
- externals/haero/** | |
- externals/YAKL/** | |
- components/eam/src/physics/rrtmgp/external/** | |
# Manual run for debug purposes only | |
workflow_dispatch: | |
# Add schedule trigger for nightly runs at midnight MT (Standard Time) | |
schedule: | |
- cron: '0 7 * * *' # Runs at 7 AM UTC, which is midnight MT during Standard Time | |
concurrency: | |
# Two runs are in the same group if they are testing the same git ref | |
# - if trigger=pull_request, the ref is refs/pull/<PR_NUMBER>/merge | |
# - for other triggers, the ref is the branch tested | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cpu-gcc: | |
runs-on: [self-hosted, gcc, ghci-snl-cpu] | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
show-progress: false | |
submodules: recursive | |
- name: Show action trigger | |
uses: ./.github/actions/show-workflow-trigger | |
- name: Check for skip labels | |
if: ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_review' }} | |
uses: ./.github/actions/check-skip-labels | |
with: | |
skip_labels: 'AT: skip eamxx-all' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pr_number: ${{ github.event.pull_request.number }} | |
- name: Run test | |
run: | | |
cd components/eamxx | |
if [ ${{ github.event_name == 'schedule' }} ]; then | |
./scripts/scripts-ctest-driver -s -m ghci-snl-cpu | |
else | |
./scripts/scripts-tests -f -m ghci-snl-cpu | |
./scripts/cime-nml-tests | |
fi |