If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Allows the Ubuntu Test Runner to not run out of storage space.
How did you implement your changes
Adds more shutil.rmfree function calls in the example dataset tests and adjusts those in the notebook tests. Adjusts the Test_Cell_Neighbors notebook to make use of the cached dataset on GHA. Added a decorator which can be used throughout the example dataset notebook tests to get info about storage space on the runner. For example:
class Test_1_Segment_Image_Data:
"""
Tests Notebook 1 - Segment Image Data for completion.
NOTE: When modifying the tests, make sure the test are in the
same order as the tagged cells in the notebook.
"""
.
.
.
@notebooks_test_utils.get_storage
def test_ex_data_download(self):
notebooks_test_utils._ex_dataset_download(dataset=self.dataset, save_dir=self.base_dir,
cache_dir=self.cache_dir)
.
.
.
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Allows the Ubuntu Test Runner to not run out of storage space.
How did you implement your changes
Adds more
shutil.rmfree
function calls in the example dataset tests and adjusts those in the notebook tests. Adjusts theTest_Cell_Neighbors
notebook to make use of the cached dataset on GHA. Added a decorator which can be used throughout the example dataset notebook tests to get info about storage space on the runner. For example:Remaining issues
None.