-
Notifications
You must be signed in to change notification settings - Fork 0
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
unit tests #2
Comments
Installs take 3.5 min because of installs. Reduced to ~2.5 in with pip caching. |
@DavidHerreros please do implement this and open a PR to compare the time and see if it helps. |
While working on caching the test files and python environment, I encountered and error related to dependency versions. It seems that in the new GitHub workflows being executed while testing the new GitHub actions, Scipy 1.14.0 was being installed. It seems that this version is not compatible with the optimal transport package coming with the dependencies. However, the package is not limiting the Scipy version itself, leading to a runtime error. In other runs of the GitHub actions, Scipy 1.13.1 was installed instead. Trying this other version fixes the issue, so I think it is a good time to manually limit the version range allowed for the packages downloaded when installing the project. I would not start with anything fancy (it is even possible to limit a package version depending on the python version itself from the toml file), probably just giving a maximum version will solve most of the installation cases. I will start by limiting the Scipy version to |
Good catch! |
For testing the notebooks, it would be nice to have a test config and pass in paths (overwrite the interactive aspect). |
Closing - continue discussion about testing plots in this issue: #42 |
use pytest to perform unit tests.
see example of pytest the compSPI/simSPI repo https://github.com/compSPI/simSPI/blob/master/.github/workflows/test.yml
Suggestions
The text was updated successfully, but these errors were encountered: