-
Notifications
You must be signed in to change notification settings - Fork 341
Clean up docs workflows #3231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
samsrabin
merged 35 commits into
ESCOMP:b4b-dev
from
samsrabin:break-up-omnibus-docs-test
Jun 24, 2025
Merged
Clean up docs workflows #3231
Changes from 22 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
8c30d15
docs: Move testing.sh to its own dir.
samsrabin c2600a1
testing.sh: cd to script dir.
samsrabin 244da83
Break up testing.sh into subscripts.
samsrabin d15df4a
docs-omnibus.yml: Use new script location.
samsrabin 4b37557
docs-omnibus.yml: Check out all submodules.
samsrabin fe02184
docs-omnibus.yml: Only run one of the testing scripts is changed.
samsrabin 628d3f9
docs-omnibus.yml: Also run when docs/Makefile is updated.
samsrabin e86ffe5
docs-ctsm_pylib.yml: Also trigger on docs container requirements.txt.
samsrabin 3631ee0
Add GitHub workflows to run when docs dependencies update.
samsrabin 40dc05d
Dont run some jobs on forks.
samsrabin cf6acee
Fix test-rv-setup.
samsrabin 115491f
test-rv-setup: Use Docker.
samsrabin 00fd3bf
testing.sh: Remove emoji from comments.
samsrabin 1dbd0f4
docs.yml: Don't run if just testing scripts were updated.
samsrabin e0ceb1d
Run docs workflows if included file in doc/testing/ updates.
samsrabin 2453199
Trying to fix docs-omnibus workflow.
samsrabin 53d034b
Reduce docs-update-ctsm_pylib runs.
samsrabin cd22a34
Docs workflows: Always checkout all submodules.
samsrabin 4848e21
Bump docs container version to satisfy workflow check.
samsrabin d5b7f1e
docker-image-build.yml: Remove nonexistent file from triggers.
samsrabin 50fe21e
Add some EOF blank lines.
samsrabin 802cb48
Merge branch 'b4b-dev' into break-up-omnibus-docs-test
samsrabin 4fd500c
Move a "don't run on forks" conditional.
samsrabin eb8f83f
Delete an unnecessary "don't run on forks."
samsrabin 722d5a5
Better explain use of one "don't run on forks."
samsrabin 3fa38aa
docs-update-dependency-common.yml: Set default conda variables.
samsrabin 4a7d411
docs-update-dependency-common.yml: Add comment re: inputs.
samsrabin 0799aeb
Combine ctsm_pylib docs workflow files.
samsrabin 345145f
Rename ctsm_pylib docs workflow file.
samsrabin 67394de
Improve workflow job names.
samsrabin e168ad3
Rename doc/testing/ to doc/test/.
samsrabin e0292f4
Finish renaming doc/testing/ to doc/test/.
samsrabin 1cdcafa
Reword a success message.
samsrabin 51c6852
Shorten a workflow title.
samsrabin ab546d5
docs/test/*sh: Explain "set -e".
samsrabin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Docs tests to run when ctsm_pylib is updated | ||
samsrabin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| on: | ||
| push: | ||
| # Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed. | ||
| branches: ['*'] | ||
| paths: | ||
| - 'python/conda_env_ctsm_py.txt' | ||
| - 'doc/ctsm-docs_container/requirements.txt' | ||
|
|
||
| pull_request: | ||
| # Run on pull requests that change the listed files | ||
| paths: | ||
| - 'python/conda_env_ctsm_py.txt' | ||
| - 'doc/ctsm-docs_container/requirements.txt' | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test-update-dependency: | ||
| # Don't run on forks | ||
| if: ${{ github.repository == 'ESCOMP/CTSM' }} | ||
|
|
||
| name: Tests to run when either docs dependency is updated | ||
| uses: ./.github/workflows/docs-update-dependency-common.yml | ||
| with: | ||
| conda_env_file: python/conda_env_ctsm_py.yml | ||
| conda_env_name: ctsm_pylib | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: Jobs shared by docs workflows that run when a dependency is updated | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| conda_env_file: | ||
samsrabin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| required: false | ||
| type: string | ||
| default: "" | ||
| conda_env_name: | ||
| required: false | ||
| type: string | ||
| default: "" | ||
| secrets: {} | ||
|
|
||
| jobs: | ||
| compare-docbuilder-vs-ctsmpylib: | ||
samsrabin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
|
|
||
| # Check out all submodules because we might :literalinclude: something from one | ||
| - name: Checkout all submodules | ||
| run: | | ||
| bin/git-fleximod update -o | ||
| - name: Set up conda environment | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| activate-environment: ${{ inputs.conda_env_name }} | ||
| environment-file: ${{ inputs.conda_env_file }} | ||
| channels: conda-forge | ||
| auto-activate-base: false | ||
|
|
||
| - name: Compare docs built with container vs. ctsm_pylib | ||
| run: | | ||
| cd doc/testing | ||
| ./test_container_eq_ctsm_pylib.sh | ||
| makefile-method: | ||
samsrabin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
|
|
||
| # Check out all submodules because we might :literalinclude: something from one | ||
| - name: Checkout all submodules | ||
| run: | | ||
| bin/git-fleximod update -o | ||
| - name: Set up conda environment | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| activate-environment: ${{ inputs.conda_env_name }} | ||
| environment-file: ${{ inputs.conda_env_file }} | ||
| channels: conda-forge | ||
| auto-activate-base: false | ||
|
|
||
| - name: Check that Makefile method works | ||
| run: | | ||
| cd doc/testing | ||
| conda run -n ${{ inputs.conda_env_name }} --no-capture-output ./test_makefile_method.sh | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: Docs tests to run when doc-builder is updated | ||
|
|
||
samsrabin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| on: | ||
| push: | ||
| # Run when a change to these files is pushed to any branch. Without the "branches:" line, for some reason this will be run whenever a tag is pushed, even if the listed files aren't changed. | ||
| branches: ['*'] | ||
| paths: | ||
| - 'doc/doc-builder' | ||
| - '.github/workflows/docs-update-dependency-common.yml' | ||
|
|
||
| pull_request: | ||
| # Run on pull requests that change the listed files | ||
| paths: | ||
| - 'doc/doc-builder' | ||
| - '.github/workflows/docs-update-dependency-common.yml' | ||
|
|
||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test-update-dependency: | ||
| # Don't run on forks | ||
| if: ${{ github.repository == 'ESCOMP/CTSM' }} | ||
|
|
||
| name: Tests to run when either docs dependency is updated | ||
| uses: ./.github/workflows/docs-update-dependency-common.yml | ||
| with: | ||
| conda_env_file: python/conda_env_ctsm_py.yml | ||
| conda_env_name: ctsm_pylib | ||
|
|
||
| test-rv-setup: | ||
| # Don't run on forks | ||
| if: ${{ github.repository == 'ESCOMP/CTSM' }} | ||
|
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
|
|
||
| # Check out all submodules because we might :literalinclude: something from one | ||
| - name: Checkout all submodules | ||
| run: | | ||
| bin/git-fleximod update -o | ||
| - name: build_docs rv method | ||
| run: | | ||
| cd doc/testing && ./test_build_docs_-r-v.sh docker | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.