-
Notifications
You must be signed in to change notification settings - Fork 5
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
STY: streamline cdf tests, NEP 29 update July 2022 #126
Conversation
Co-authored-by: Russell Stoneback <github@stoneris.com>
what about version limits in setup.cfg? |
I thought these were not supposed to go in setup.cfg. @aburrell? |
I've been seeing xarray 2020.06.0 on systems, like the testing here, that I was expecting would have a previous xarray version given the dependence on pysat. I just checked pysat. There are no version restrictions within the setup so default pysat installations are installing the newest xarray which is incompatible 😿 |
That is correct, it's an antipattern. |
So if we install from pip, how does it know which versions will work? |
Documentation tests fixed in #122. Note that the xarray cap is only in the NEP29 tests, since it does not support numpy 1.20. |
if: ${{ matrix.numpy_ver != 'latest'}} | ||
run: | | ||
pip install --no-binary :numpy: numpy==${{ matrix.numpy_ver }} | ||
pip install "xarray<2022.06" |
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.
xarray limit only required for NEP29 case.
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.
do we still need this restriction?
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.
We need this for the NEP29 case since the old numpy is not compatible with the latest xarray.
Description
use_cdfib
syntax to reduce number of skipped tests.test_load_cdflib
.test_load_cdflib
since those are post-processing and tested elsewhere. Since cdflib is the slower option, this speeds things up a bit.Type of change
How Has This Been Tested?
Tested via pytest.
Test Configuration
Checklist:
develop
(notmain
) branchCHANGELOG.md
, summarizing the changes (part of previous pull, pysatCDF)