ci: modified test suite to run on cupy#660
Conversation
|
@cako as I previously mentioned, with the help of @hongyx11 we are trying to create a self-hosted CI to test our Would you have time to have a quick look at this PR; it is pretty boring as most code changes are as explained above to allow switching between numpy and cupy via an environment variable. However, whilst going through this refractoring of the tests, I also found a few small bugs #657 #658 #659 (always good to fix things...) @hongyx11, I guess we need this merged before we can try together to set up the self-hosted runner, right? |
|
@hongyx11, this has been quite for a while... I guess I can merge it and we make a new PR once we have the Github action working for the self-hosted runner 😄 |
This PR modifies the entire test suite to run tests both using the
numpyandcupybackends.An environment variable called
TEST_CUPY_PYLOPSis used to select whether to run the tests with the numpy (0) or the cupy (1) backends.Basically one can run tests with the following commands:
where the first two exports aren't really needed if
cupyisn't installed.Additional requirements and environment files are provided to create cupy-enable Python environments for the CI.