-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add pytests and CI for simple configuration checks #32
Conversation
fd0839c
to
12f4fa0
Compare
@jo-basevi what markers would be used for these new tests? |
Ok there's a bit of test marker explosion.. Otherwise for the high resolution configs (just As checking the metadata realms is model specific, there's also markers for |
Sounds good! If we want to run different checks on different branches, we could add another {
"$schema": "./ci.schema.json",
"pytest": {
"quick": {
"markers": {
"branches": {
"dev-025deg_jra55_ryf": "config or metadata or highres"
},
"default": "config or metadata"
}
},
"repro": {
"markers": {
"branches": {
},
"default": "checksum"
}
}
}
} Also getting @aidanheerdegen s feedback on this would be good |
Regrading the checklist in the issue here, the only tests not implemented are:
|
Alright, got the CI working. Now just need to figure out - which configs need something other than |
Well now. I have been mulling over if we should separate the BGC configs out into a separate That said, you can tell the difference because the BGC configs will have |
I think the |
Note |
…ly allow repro checks on dev-* -> release-* PRs
63fb429
to
061378f
Compare
So |
Yeah, I think we should remove the ignored |
Given this extra check suggestion here, I wonder if its now worth inferring information from the branch name within the tests - rather than adding markers for each different degree.. |
Co-authored-by: Aidan Heerdegen <[email protected]>
- Add new file for access-om2 config tests - Parse the git branch of access-om2 config for resolution and bgc - Add restart period and metadata keywords tests
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.
Just preventing merge until I've tested the CI portion on my own org
…ranch rather than the source branch
…he version in the metadata.yaml, which allows merge
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.
LGTM. Thanks.
Note: Require checks on modification to metadata.yaml to succeed before giving the |
Note to self...what the heck did I mean when I wrote the above comment... In other news, I'm adding a commit that lets devs know that they can modify the |
…are now inaccessible
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.
CI parts LGTM.
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.
Just approving since the CI tests are done. i think I went through all the possible paths...
I think I'm all done with the changes here (CI wise) :) |
… default metadata schema
I'm done with the pytest changes (unless there are more review suggestions?) |
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.
LGTM. Thanks for all the work @jo-basevi and @CodeGat
Add CI checks for checking
config.yaml
,metadata.yaml
files and simple configuration directory checks, as described in #25.Closes #25
TODO:
release-*
anddev-*