TissueEngineeringLab / MyoFInDer

Python interface for automatic calculation of the fusion index in muscle cell cultures
https://tissueengineeringlab.github.io/MyoFInDer/
GNU General Public License v3.0
3 stars 1 forks source link

Improve the test workflows #30

Closed WeisLeDocto closed 8 months ago

WeisLeDocto commented 8 months ago

In #29, a test mode was added to the module MyoFInDer to make it initialize without fully running. This test mode was however only implemented, but not actually used anywhere.

This PR make use of the test mode in two of the three implemented test workflows. In test_python_package.yml, the tests on Windows now start MyoFInDer in test mode instead of just importing the module. On Linux and macOS, however, this is not possible in absence of a graphical environment. The correct configuration for running tests on these OS without a graphical environment might be added in future works.

In build_windows_installer.yml, a wheel of the latest version of MyoFInDer is now built, and installed by the start_myofinder.bat script. The installed version of the module is then started in test mode, on a Windows machine.

The tests conducted in the workflows are still pretty basic. In future works, a more comprehensive test suite should be added and ideally run on all the supported Python versions and platforms.