HakaiInstitute / GEM-in-a-box-dataset-repository-template

Creative Commons Attribution 4.0 International
0 stars 0 forks source link

add pytests github action #19

Closed fostermh closed 2 months ago

fostermh commented 2 months ago

see https://github.com/HakaiInstitute/hakai-datasets-repo-standard-tests/tree/master/GEM_data_repo_tests for the actual tests that get run

steviewanders commented 2 months ago

Thanks! Seems like @timvdstap will consider this topic after the workshop rather than force it before.

github-actions[bot] commented 2 months ago

============================= test session starts ============================== collected 19 items

test_filenames.py . [ 5%] test_files_folders_exists.py ................F. [100%]

=========================== short test summary info ============================ FAILED test_files_folders_exists.py::TestFilesFoldersExists::test_files_folders_exists_16_data_Instruments_jpg - AssertionError: ["'/Instruments/.jpg' missing from 'data/2024-09-16_example_dataset'"] assert not ["'/Instruments/.jpg' missing from 'data/2024-09-16_example_dataset'"] ========================= 1 failed, 18 passed in 0.20s ========================= filepath passed failed SUBTOTAL
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/GEM_data_repo_tests/test_filenames.py 1 0 1
../../../../../opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/GEM_data_repo_tests/test_files_folders_exists.py 17 1 18
TOTAL 18 1 19