-
Notifications
You must be signed in to change notification settings - Fork 2
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
TST: run array-api-tests in CI #47
Conversation
e15df69
to
9c6dd2d
Compare
.github/workflows/ci.yml
Outdated
- name: Setup test suite | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/array-api-tests | ||
git apply ${GITHUB_WORKSPACE}/ci/xp-tests.patch |
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 a bit hacky. I wonder whether I could create a GitHub Action to automate the patching for a given array-api-tests 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.
That would be very cool!
I'll make you a maintainer so CI runs for you.
Will there be a way to skip tests? There will probably be a few that are hard to get working (e.g. if there are some with dlpack).
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.
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.
OK, ran CI and made you a collaborator so you can play around with this. Thanks!
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.
thanks!
alright, modulo a few hiccups in array-api-tests, only 19 failures currently!
|
What's the easiest way to run these locally? I'd like to be able to run them in my IDE and use the debugger. |
wait for the pixi PR to merge, then I'll set it up so you can do |
|
I suppose that is a feature request for array-api-tests then. Can you workaround it for now by changing to relative imports?
Which packages did you add? We should add them to the |
hypothesis, pytest-json-report, and ndindex |
they are already part of the |
I created my own |
Sorry, I might not be understanding the problem. For |
This is all about running the tests in my IDE, not using pixi from the command line. Was that the missing piece? |
Right - can you point your IDE to |
It doesn't list pixi specifically as a type of environment I can add. Should one of the other options work? Also, I tried adding these to array-api-strict-skips.txt, but I don't think they were skipped:
Where do these go? (Could you add them, and I'll follow in the future?) |
sounds like you are looking for https://pixi.sh/dev/ide_integration/pycharm/ |
|
Oops, and yeah, that is in the code now and should work. I'll check it out. |
just 6 failures now! |
Hah yeah well skipping tests will do that : ) But yeah fixing |
Merging gh-56 should get all the tests to pass. |
310c5f6
to
a9e0b6e
Compare
1 failure left for EDIT: on macOS only? I can reproduce it locally on macOS |
the reference implementation is |
|
okay, in it goes, nice work! |
No description provided.