-
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
Add CI / improve testing #2
Comments
Thanks for your feedback. The function In the coming days, I will nevertheless add CI to the package to test more functionalities on smaller examples. Unfortunately, the Github hosted machines do not have a GPU so the tests will be limited to much simpler, small scale cases. |
Yeah, I ran |
I added the quick test module Please tell me if the addition of this module answers your comment or if you would like to see something else. I won't close this issue until both of you (@junghans and @lorenzo-rovigatti) tick the "Automated tests" item on the review page. |
Great job! |
Thanks to @junghans for opening this issue and @antoinediez for providing a solution. Unfortunately I'm having some issues with it. I have installed sisyphe by cloning the repo and using The following snippet import pytest
from sisyphe.test import quick_test
retcode = pytest.main(quick_test.__file__) results in
I never used Pytest but looking at the error I tried to fix it with Unfortunately this results in quite a few |
Hi @lorenzo-rovigatti ! Thanks for correcting For the second (and more critical) issue, I think that it comes from PyKeOps. What does the following snippet output on your machine ? import pykeops
pykeops.clean_pykeops()
pykeops.test_torch_bindings() If it does not work then, I think that it is related to this issue getkeops/keops#142. This should be solved by upgrading Cmake to Cmake>=3.18. To check that, I tried the following: on a Google Colab session, typing !pip install sisyphe
import pytest
from sisyphe.test import quick_test
retcode = pytest.main([quick_test.__file__,]) gives exactly the same error as yours. However, by typing first !pip install pykeops[colab] this will upgrade Cmake to Cmake 3.18 before installing PyKeOps and the tests then run as expected. |
Yes, the snippet does not work. I'll try to update cmake and see if that solves the issue! |
Updating cmake does solve the issue. Maybe you want to add this requirement somewhere in the documentation. Either than that I think you mark this issue as resolved! |
Great thank you! |
Related to openjournals/joss-reviews#3653
The README only refers to one test
sisyphe.test_sisyphe()
, which takes a long time, only tests some functionality and needs to be run manually.It would be good to add CI, e.g. GitHub action to repo and run these tests at every push.
Testing python packages is pretty simple, see https://docs.github.com/en/actions/guides/building-and-testing-python
The text was updated successfully, but these errors were encountered: