Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: