-
Notifications
You must be signed in to change notification settings - Fork 65
Check (but not fix) Fortran format in GitHub actions #717
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
Open
climbfuji
wants to merge
8
commits into
NCAR:develop
Choose a base branch
from
climbfuji:feature/codee_ci
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
64b1798 to
4cc9c80
Compare
8e7925c to
e115fe9
Compare
e115fe9 to
6214664
Compare
climbfuji
commented
Jan 22, 2026
| !!XXgoldyXX: To do, statistics output | ||
| module ccpp_hash_table | ||
|
|
||
| ! Modify this file ... |
Collaborator
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 4-5 will be removed before merging the PR, this will allow the newly added test to pass.
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.
Note. The newly added GitHub actions workflow is currently failing intentionally to illustrate how the setup works. The temporary change to the Fortran source code that triggers this failure will be reverted so that all tests pass before this PR is merged.
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 (see note above about newly added test)
manual testing: n/a
test added: GitHub actions test to check formatting of static Fortran source files in this repository