Skip to content

Rename SKIP_PYNWB var and update CI/tests to skip PyNWB dependent tests on older MATLAB releases#791

Open
ehennestad wants to merge 3 commits intomainfrom
fix-skip-pynwb-tests-for-older-matlab-releases
Open

Rename SKIP_PYNWB var and update CI/tests to skip PyNWB dependent tests on older MATLAB releases#791
ehennestad wants to merge 3 commits intomainfrom
fix-skip-pynwb-tests-for-older-matlab-releases

Conversation

@ehennestad
Copy link
Collaborator

@ehennestad ehennestad commented Mar 10, 2026

Motivation

MATLAB R2022b and earlier only supports Python <= 3.9, whereas pynwb/nwbinspector supports Python >= 3.10.
This makes it difficult to test Pynwb-dependent tests on older MATLAB releases, and this PR makes the PyNWB-dependent tests fully conditional.

  • Rename the old SKIP_PYNWB_COMPATIBILITY_TEST_FOR_TUTORIALS env var with SKIP_PYNWB_TESTS across tests and nwbtest.m
  • Update CI workflow matrix keys and usage in prepare_release.yml, run_tests.yml, and configurations/matlab_release_matrix_strategy.yml to use the new key (matrix.skip-pynwb-tests) and wire the MATLAB setenv accordingly.
  • Move conditional installation of pynwb into the workflows (install pynwb only when skip-pynwb-tests == '0') and remove the direct git+ dependency from +tests/requirements.txt (update comment to reflect conditional installs).
  • Added TestTags = {'UsesPython'} to PyNWBIOTest.

Checklist

  • Have you ensured the PR description clearly describes the problem and solutions?
  • Have you checked to ensure that there aren't other open or previously closed Pull Requests for the same change?
  • If this PR fixes an issue, is the first line of the PR description fix #XX where XX is the issue number?

Replace the old SKIP_PYNWB_COMPATIBILITY_TEST_FOR_TUTORIALS env var with SKIP_PYNWB_TESTS across tests and nwbtest.m, and update +tests/nwbtest.default.env.
Update CI workflow matrix keys and usage in prepare_release.yml, run_tests.yml, and configurations/matlab_release_matrix_strategy.yml to use the new key (matrix.skip-pynwb-tests) and wire the MATLAB setenv accordingly.
Move conditional installation of pynwb into the workflows (install pynwb only when skip-pynwb-tests == '0') and remove the direct git+ dependency from +tests/requirements.txt (update comment to reflect conditional installs).
Also add TestTags = {'UsesPython'} to PyNWBIOTest.

These changes centralize the CI control of pynwb installation and standardize the skip variable name.
checking if this class attribute trips up docs build
Move TestTags to methods blocks. Check if that fixes issue with sphinx build of docs
@ehennestad ehennestad requested a review from bendichter March 11, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant