Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cdda6b5
Update workflows to use ubuntu-26.04.
samsrabin Nov 3, 2026
20d9a53
Missed one workflow.
samsrabin Nov 3, 2026
ae99182
Update ctsm_pylib to use python 3.13.13.
samsrabin Nov 3, 2026
d7cb900
Remove version numbers from conda yml
samsrabin Nov 3, 2026
5f36f6c
Update setup-miniconda from v3 to v4.1
samsrabin Nov 3, 2026
0a5f6f3
Revert "Remove version numbers from conda yml"
samsrabin Nov 3, 2026
be93e39
Revert "Update workflows to use ubuntu-26.04."
samsrabin Nov 3, 2026
fa32fda
Update workflows to use ubuntu-26.04.
samsrabin Nov 3, 2026
d882826
Update setup-python from v5.6 to v7.1.
samsrabin Nov 3, 2026
0afb4dc
Update actions/checkout from v4.2.2 to v7.0.1
samsrabin Nov 3, 2026
23bbba0
Update actions/cache from v3 to v6.1.0
samsrabin Nov 3, 2026
b9414d3
Fix "Without ctsm_pylib or container" workflow.
samsrabin Nov 3, 2026
bc2ee10
Bump Dockerfile
samsrabin Nov 3, 2026
5ebea93
Add workflow_dispatch trigger to some workflows.
samsrabin Nov 3, 2026
a921887
Revert "Update workflows to use ubuntu-26.04."
samsrabin Nov 3, 2026
fa89487
Fix an actions/checkout pin
samsrabin Nov 3, 2026
343698c
Bump actions/download-artifact to v8.0.2
samsrabin Nov 3, 2026
9a3372b
Bump actions/upload-artifact to v7.0.2
samsrabin Nov 3, 2026
683027a
Bump actions/attest-build-provenance to v4.2.2
samsrabin Nov 3, 2026
b1df128
Bump actions/configure-pages to v6.0.0
samsrabin Nov 3, 2026
8e184ed
Bump actions/upload-pages-artifact to v5.0.0
samsrabin Nov 3, 2026
864e51f
Bump actions/deploy-pages to v5.0.1
samsrabin Nov 3, 2026
d070bff
Bump docker/login-action to v4.7.0
samsrabin Nov 3, 2026
666e86f
Bump docker/metadata-action to v6.2.0
samsrabin Nov 3, 2026
708f118
Bump docker/setup-buildx-action to v4.4.1
samsrabin Nov 3, 2026
e31598a
Bump docker/build-push-action to v7.4.0
samsrabin Nov 3, 2026
bc9170d
Fix version comments on two action pins
samsrabin Nov 3, 2026
6b86b4b
Change one more workflow back to ubuntu-latest
samsrabin Nov 3, 2026
4e1427a
Update Dockerfile to use Python 3.13.13.
samsrabin Nov 3, 2026
0540e12
py_env_create: "Old" is now 3.13.2.
samsrabin Nov 3, 2026
875abb0
push-and-attest job now gets artifact-metadata: write
samsrabin Nov 3, 2026
7a6c18a
Avoid deprecated option in conda-incubator/setup-miniconda
samsrabin Nov 3, 2026
acdc9bc
Simplify "Print installed Python packages"
samsrabin Nov 3, 2026
d5b84e2
ctsm-docs image is a proper new version.
samsrabin Nov 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-compset-aliases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Checkout submodules
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/check-testlists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@ on:
- 'cime_config/testdefs/testlist_clm.xml'
- '.github/workflows/check-testlists.yml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
testlist-supertestlists:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Set up the conda environment
- uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3
- uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0
with:
activate-environment: ctsm_pylib
environment-file: python/conda_env_ctsm_py.yml
channels: conda-forge
auto-activate-base: false
auto-activate: false

- name: Print installed Python packages
run: conda list
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/docker-image-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,32 @@ jobs:
packages: write
attestations: write
id-token: write
artifact-metadata: write

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# This step sets up Docker Buildx, which is needed for the multi-platform build in the next step
# https://docs.docker.com/build/ci/github-actions/multi-platform/
# v3.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1

# This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
# Note that we should avoid relying on the "latest" tag for anything, but it's good practice to have one.
# v6.15.0
- name: Push Docker image
id: push
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: doc/ctsm-docs_container
platforms: linux/amd64,linux/arm64
Expand All @@ -78,7 +77,7 @@ jobs:

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see [Using artifact attestations to establish provenance for builds](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds).
- name: Generate artifact attestation
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/docker-image-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Ensure that the repository part of IMAGE_NAME is lowercase. This is needed because Docker requires image names to be entirely lowercase. Note that the *image name* part, set as IMAGE_BASENAME in the env block above, is *not* converted. This will cause the check-version job to fail if the IMAGE_BASENAME contains capitals. We don't want to silently fix that here; rather, we require the user to specify a lowercase IMAGE_BASENAME.
- name: Get image name with lowercase repo
Expand All @@ -46,7 +46,7 @@ jobs:

# Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4.7.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -55,17 +55,16 @@ jobs:
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: ${{ env.REGISTRY }}/${{ steps.set-image-name.outputs.IMAGE_NAME }}

# This step uses the `docker/build-push-action` action to build the image, based on the ctsm-docs `Dockerfile`.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see [Usage](https://github.com/docker/build-push-action#usage) in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
# v6.15.0
- name: Build Docker image
id: build-image
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: doc/ctsm-docs_container
push: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-image-get-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Get version number from Dockerfile and check it
id: get-check-version
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Get all history, ensuring all branches are available for checkout
fetch-depth: 0

- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

# Check out all submodules because we might :literalinclude: something from one
- name: Checkout all submodules
Expand All @@ -66,11 +66,11 @@ jobs:
./build_docs_to_publish -d --site-root https://escomp.github.io/CTSM

- name: Upload artifact
uses: actions/upload-pages-artifact@0252fc4ba7626f0298f0cf00902a25c6afc77fa8 # v3
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
# Upload publish dir
path: 'doc/_publish'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@f33f41b675f0ab2dc5a6863c9a170fe83af3571e # v4
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
14 changes: 7 additions & 7 deletions .github/workflows/docs-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
lfs: true
Expand All @@ -35,12 +35,12 @@ jobs:
# Based on https://github.com/actions/cache/blob/main/examples.md#python---pip
- name: Install python
if: ${{ ! inputs.use_conda }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.13.2' # needs to be coordinated with version in python/conda_env_ctsm_py.yml
python-version: '3.13.13' # needs to be coordinated with version in python/conda_env_ctsm_py.yml
- name: Cache pip
if: ${{ ! inputs.use_conda }}
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('doc/ctsm-docs_container/requirements.txt') }}
Expand All @@ -54,15 +54,15 @@ jobs:
# Do this if using conda
- name: Set up conda environment
if: ${{ inputs.use_conda }}
uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3
uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0
with:
activate-environment: ${{ inputs.conda_env_name }}
environment-file: ${{ inputs.conda_env_file }}
channels: conda-forge
auto-activate-base: false
auto-activate: false

- name: Print installed Python packages
run: conda list
run: ${{ inputs.use_conda && 'conda list' || 'pip list' }}

- name: Build Sphinx docs with makefile
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs-omnibus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
lfs: true
Expand All @@ -36,12 +36,12 @@ jobs:

# Set up conda
- name: Set up conda environment
uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3
uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0
with:
activate-environment: ctsm_pylib
environment-file: python/conda_env_ctsm_py.yml
channels: conda-forge
auto-activate-base: false
auto-activate: false

- name: Print installed Python packages
run: conda list
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-pr-failure-post-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Download logs
if: steps.check.outputs.found == 'true'
uses: actions/download-artifact@v4
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: ${{ env.DOCS_FAILURE_ARTIFACT }}
path: ${{ env.DOCS_FAILURE_ARTIFACT }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-update-ctsm_pylib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Create issue
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docs-update-dependency-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
lfs: true
Expand All @@ -38,12 +38,12 @@ jobs:
bin/git-fleximod update -o

- name: Set up conda environment
uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3
uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0
with:
activate-environment: ${{ inputs.conda_env_name }}
environment-file: ${{ inputs.conda_env_file }}
channels: conda-forge
auto-activate-base: false
auto-activate: false

- name: Print installed Python packages
run: conda list
Expand All @@ -56,7 +56,7 @@ jobs:
makefile-method:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
lfs: true
Expand All @@ -67,12 +67,12 @@ jobs:
bin/git-fleximod update -o

- name: Set up conda environment
uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3
uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb # v4.1.0
with:
activate-environment: ${{ inputs.conda_env_name }}
environment-file: ${{ inputs.conda_env_file }}
channels: conda-forge
auto-activate-base: false
auto-activate: false

- name: Check that Makefile method works
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-update-doc-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
lfs: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

# Check out all submodules because we might :literalinclude: something from one
- name: Checkout all submodules
Expand All @@ -82,7 +82,7 @@ jobs:

- name: Upload logs on failure
if: failure() && steps.build-docs.outcome == 'failure'
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: test-build-docs-container_failed
path: build-logs/
Expand All @@ -94,7 +94,7 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Disallow fake degree signs
if: always()
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/fleximod_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
branches: ['*']
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
fleximod-test:
runs-on: ubuntu-latest
Expand All @@ -19,7 +22,7 @@ jobs:
python-version: ["3.7", "3.x"]
steps:
- id: checkout-CTSM
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- id: run-fleximod
run: |
$GITHUB_WORKSPACE/bin/git-fleximod update -o
Expand Down
Loading
Loading