RascalSoftware / RasCAL-2

GUI for Reflectivity Algorithm Toolbox
GNU General Public License v3.0
0 stars 4 forks source link

Adds workflows for CI testing #12

Closed alexhroom closed 3 months ago

alexhroom commented 3 months ago

Fixes #10 by adding infrastructure for CI testing.

I've added the functionality for a pytest mark to indicate tests that are slow (which we want to run on review rather than for every commit). A test can be flagged as slow with the decorator @pytest.mark.slow, and an entire test file can be marked as slow by setting the global variable pytestmark = 'slow'

The unit tests are run in a miniconda env set up to use our environment.yaml, and the slow integration tests are run on bare metal over all Python versions that Python actively supports (3.10, 3.11, 3.12).