Open ma595 opened 2 months ago
Copying over Tom's comment here:
https://github.com/CALIPSO-project/SPINacc/pull/45#issuecomment-2188959336
Discussed idea of generating idealized test case for integration test. Not necessarily physically meaningful but something that uses the code in a realistic manner.
@dsgoll123 will make a new small training set for new version ORCHIDEE
Automatic testing
The tests rely on a job being completed before execution as output data needs to be there for a comparison to happen. For automated testing (regression), this presents a problem. We have therefore shown how it may be possible to use github actions to run the job in advance and then execute a single test.
The automated job needs the following data to execute a test.
The zenodo data is approximately 1.1GB. We cannot run SPINacc from scratch because the data dependencies are just too large. This is explained more here
Testing is steered using a .github actions file.
.github/workflows/python.yml
, and assumes that the initialisation step has already been executed. Thereforeauxil.npy
andpackdata.npy
are already there.It does the following:
https://github.com/ma595/SPINacc-data.git
including:auxil.npy
(metadata) andpackdata.npy
vlad_data/vlad_data
sed
to change the execution paths and the test totest_clustering
. Equally, we could commit a file and move this to the appropriate location. (Doesn't have to beDEF_Trunk
, for example).varlist.json
to the appropriate path corresponding to the directory of the clonedvlad_data
.main.py
tests/test_task1.py
only.Outstanding issues
In order to merge the following issues should be addressed: