You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tests] Python-only tests hidden behind MATLAB skips never run in CI #432
🤖 Some pure-Python tests only run when MATLAB is available.
Some tests that need no MATLAB sit inside classes or modules that skip entirely when EEGPREP_SKIP_MATLAB=1. That is the setting on every CI runner without a MATLAB license. These tests never run in normal CI.
tests/test_pop_reref.py::TestPopReref. The class has @unittest.skipIf(os.getenv('EEGPREP_SKIP_MATLAB') == '1', ...). Besides its MATLAB parity tests it holds 13 Python-only tests:
tests/test_pop_loadset_h5.py. The module raises unittest.SkipTest at import when MATLAB is unavailable, and the file is listed in MATLAB_FILE_SUFFIXES in tests/conftest.py. That also skips the pure-Python TestPopLoadsetH5RealData tests: test_compare_continuous_pop_loadset, test_compare_epochs_pop_loadset and test_direct_call_returns_zero_based_urevent_and_urchan. These compare HDF5 against v7 on real files and check 0-based urevent/urchan. Run with EEGPREP_SKIP_MATLAB=0 they pass (3 passed).
Fix: move the Python-only tests out of the MATLAB-gated class/module, or gate only the parity tests (for example a per-test skipIf, or a matlab marker on just the parity class). Then update the conftest maps. This predates #429, which only pointed it out.
Activity