Run the tests only if the given label is present.
Labels are:
SNOwGLoBES, ModelsRegistry, SupernovaModel - to test separate parts of the package.
Adding label test:All forces a run of all existing tests (remove and add label again to repeat).
Note:
Probably we should revise our tests. For example we don't need to run the tests on ALL models. I've introduced pytest.mark.base for testing basic functionality, so maybe we can mark couple of lightweight models as base.
Also still a lot of time is taken by downloading the SNEWPY in the first place, so I think we need to remove the model files from this repository.
Closes #256
Run the tests only if the given label is present. Labels are:
SNOwGLoBES
,ModelsRegistry
,SupernovaModel
- to test separate parts of the package. Adding labeltest:All
forces a run of all existing tests (remove and add label again to repeat).Note: Probably we should revise our tests. For example we don't need to run the tests on ALL models. I've introduced
pytest.mark.base
for testing basic functionality, so maybe we can mark couple of lightweight models asbase
.Also still a lot of time is taken by downloading the SNEWPY in the first place, so I think we need to remove the model files from this repository.