Add a CI run that only tests non-optional deps (optimistically)#3759
Add a CI run that only tests non-optional deps (optimistically)#3759ml-evs wants to merge 1 commit intomaterialsproject:masterfrom
Conversation
|
Important Auto Review SkippedDraft detected. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
|
@CodeRabbit disable |
- Hopefully all tests have been written in such a way that they will be skipped if the underlying required package is not found
fa78941 to
783ba88
Compare
|
Superseded by #3857 |
New version of #3646.
This PR adds a separate test suite run for the case that only mandatory dependencies have been installed (directly via
pip install -e .[dev]), attempting to mimic what a user will actually have when they justpip install pymatgen. This will then hopefully catch errors where either optional imports are not properly guarded, or main functionality is rendered broken by optional dependency updates.Not sure if this is something that you would actually want to merge given the potential maintenance overhead, but this might be able to spot more issues before they arise now that #3757 is merged.
Someone will need to carefully look at how I am invoking the tests, as I'm not sure if there is any coverage/durations magic going on that needs to be separated between the two runs (the comments to that effect at the top of
test.ymlmight now be out of date).