-
Notifications
You must be signed in to change notification settings - Fork 112
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
Allow newest version of OpenMDAO #400
Conversation
Codecov Report
@@ Coverage Diff @@
## main #400 +/- ##
=======================================
Coverage 96.62% 96.62%
=======================================
Files 93 93
Lines 6009 6012 +3
=======================================
+ Hits 5806 5809 +3
Misses 203 203
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Thanks @eytanadler , looks good to me! I personally wouldn't bother testing it because it doubles the build time, but I'm okay either way. |
I'll add a test for older OM versions. I believe GHA runs the build matrix in parallel, so it shouldn't slow it down much. On second thought, I guess if the version works there's no point in updating it since leaving as is will enable pip to resolve versions more easily if there are dependency conflicts. |
…save debugging time
…only package difference between working and not
@kanekosh @bernardopacini I think this is finally ready for review. The GHA build file isn't the prettiest thing you'll ever see, but it does the job it needs to. |
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.
Thank you Eytan! Other than the pygeo version in setup.py, looks good to me
@@ -11,7 +11,7 @@ | |||
optional_dependencies = { | |||
"docs": ["sphinx_mdolab_theme"], | |||
"test": ["pytest", "pytest-cov", "coverage"], | |||
"ffd": ["pygeo>=1.6.0"] | |||
"ffd": ["pygeo>=1.6.0"], |
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.
pygeo>=1.12.2 ?
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.
Good catch. pyGeo 1.12.2 was the latest that works with the old versions of the other packages, but older versions of pyGeo work too. I'll see if 1.6.0 works with the old build and if so leave that as the old build version.
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.
One minor comment, but overall looks good to me!
- latest | ||
* - OpenVSP (optional) | ||
- 3.27.1 | ||
- 3.27.1 |
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.
Is this duplicate by mistake?
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.
This is intentional since the OpenVSP version is 3.27.1 on both the oldest and latest GitHub Actions builds
Purpose
Removed the upper bound on the OpenMDAO version. Because there may be changes in new OpenMDAO versions (or other packages for that matter) that break parts of OpenAeroStruct, I also added automatic GitHub Actions testing twice a month. This will tell us if any changes in the newest package versions have caused errors in OpenAeroStruct.
I've also updated black and flake8 to use the MDO Lab actions, which involved reformatting OpenAeroStruct for the new version of black.
Do we want to update the lower bound on OpenMDAO? Version 3.2.0 is getting pretty old. We aren't testing intermediate versions of packages so we don't really know that older versions still work.
Expected time until merged
Within a couple weeks?
Type of change
Testing
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable