Check (but not fix) Fortran format in GitHub actions#717
Merged
mkavulich merged 11 commits intoNCAR:developfrom Feb 6, 2026
Merged
Check (but not fix) Fortran format in GitHub actions#717mkavulich merged 11 commits intoNCAR:developfrom
mkavulich merged 11 commits intoNCAR:developfrom
Conversation
64b1798 to
4cc9c80
Compare
8e7925c to
e115fe9
Compare
e115fe9 to
6214664
Compare
climbfuji
commented
Jan 22, 2026
src/ccpp_hash_table.F90
Outdated
| !!XXgoldyXX: To do, statistics output | ||
| module ccpp_hash_table | ||
|
|
||
| ! Modify this file ... |
Collaborator
Author
There was a problem hiding this comment.
Lines 4-5 will be removed before merging the PR, this will allow the newly added test to pass.
dustinswales
approved these changes
Feb 2, 2026
Member
dustinswales
left a comment
There was a problem hiding this comment.
@climbfuji This is great. Thanks!
I wonder if we could add a github secret and allow the workflow to be run from forks?
(I will look into this...)
peverwhee
approved these changes
Feb 5, 2026
climbfuji
commented
Feb 5, 2026
Collaborator
Author
|
@mkavulich This is ready to go in |
mkavulich
reviewed
Feb 6, 2026
climbfuji
commented
Feb 6, 2026
mkavulich
approved these changes
Feb 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Check (but not fix) Fortran format in GitHub actions.
This PR enables automated checking of the Fortran format using Codee in GitHub actions. The new test will fail if running Codee updates files that are modified in a pull request. The system tells the user to either run Codee locally (which is almost trivial when following the GitHub workflow) or applying a diff that the system produces.
This PR does not enable automatic reformatting and updates of pull requests, because this doesn't work if the pull request comes from a fork (which we usually require for the ccpp-framework repository). The stencil code to do this is submitted as comment in the current PR, however.
The checking is limited to the static Fortran source files in this repository, not the auto-generated Fortran code from
capgenorprebuild- this will be addressed in a future PR.While at it, I updated the existing GitHub workflows to run on
developonly, sincemainis now frozen`, and to avoid concurrent workflow runs (i.e. cancel currently running tests from the same pull request if an update is pushed).User interface changes?: No
Working toward #703
Testing:
test removed: n/a
unit tests: all pass
system tests: all pass
manual testing: n/a
test added: GitHub actions test to check formatting of static Fortran source files in this repository