-
Notifications
You must be signed in to change notification settings - Fork 32
Fix build and tests; update Python versions / dependencies #569
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
fedarko
wants to merge
20
commits into
biocore:master
Choose a base branch
from
fedarko:fix-tests-202504
base: master
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
- test main.yml on q2 2024.10 (eventually should test on a matrix of q2 versions like Qurro's CI does) - test standalone.yml on new python versions (we mayyyy want to decide if supporting old python versions is worth it. i think it is ok for now at least)
maybe this will fix the weird "no module named numpy" issue i get when installing iow?
Since iow doesn't yet support python 3.13
Will this fix qunit-puppeteer not working? we'll see
... not qunit-puppeteer. different packages! and the n-q-p one works, whereas the q-p one for some reason doesn't any more (it just freezes) since q-p has not been updated in ~8 years i suspect that chromium or puppeteer or some combo thereof (idk) got updated in a way that broke the program. node-qunit-puppeteer seems more actively maintained
at least it gave me a new error message
i think this is unnecessary and also breaking gh actions atm
I don't actually know if this will cause problems for this particular build -- I think I made this change while I was frantically trying stuff out a few hours ago. Let's see if this is needed... can adjust accordingly either way.
make consistent
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.
This fixes both the
main(QIIME 2 + Python tests + JS test) andstandalone(just non-Q2 Python tests) builds. It took some finagling, but this should be ready for review now -- it addresses all of the build issues, with the exception of McHelper still being down.Some notes:
The
mainbuild is still failing because McHelper is not responding. Aside from that, everything else should be working.This updates the supported Python versions to {3.9, 3.10, 3.11, 3.12}, to match iow 1.0.8. (Note that iow 1.0.8 does not support 3.13 yet, and trying to include it in the build matrix fails due to iow not finding numpy.)
This also imposes a numpy pin < 2, due to Incompatibility with numpy 2.x? improved-octo-waddle#59 (and Fix BP tree corruption due to numpy uints #563). I verified that this pin is required to make the
standalonebuild's tests pass. (The latest Q2 versions still use numpy < 2 as far as I can tell, so this is not an issue there, but I am sure they will update eventually.)Adjusted the main GitHub Actions workflow to test on a newer Q2 version (2024.10). It would be nice eventually to test on multiple Q2 versions.
This replaces nosetests with pytest, because nose is no longer maintained and was causing some strange errors. Pytest seems to work well as a drop-in replacement.
For some reason,
qunit-puppeteer(the JS test runner) isn't working any more (either on my laptop or on GH Actions). Looks likenode-qunit-puppeteer(a different package with a similar name) is more actively maintained and does not have this issue, so I switched the JS tests to use this other package.