Skip to content

Commit 9f2beaa

Browse files
Set NDI_CLOUD_TEST_USER_HAS_MATLAB_LICENSE=true in test job env
The BYOL license guard in tests/_matlab_license_guard.py raises at module-import time when this variable is unset, which collapses pytest collection on the whole `tests/` tree (so all three test (3.x) matrix entries fail before any test runs). The CI cloud test account already has a registered MATLAB license, so destructive tests (DELETE /users/me/matlab-license) must be skipped, not run; set the guard to "true" to enforce that.
1 parent c12fce4 commit 9f2beaa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
env:
5656
NDI_CLOUD_USERNAME: ${{ secrets.TEST_USER_2_USERNAME }}
5757
NDI_CLOUD_PASSWORD: ${{ secrets.TEST_USER_2_PASSWORD }}
58+
# The CI test account already has a registered MATLAB license,
59+
# so the destructive BYOL tests (DELETE /users/me/matlab-license)
60+
# must be SKIPPED, not run. The license guard in
61+
# tests/_matlab_license_guard.py enforces this at module-import
62+
# time and refuses to run if this variable is unset.
63+
NDI_CLOUD_TEST_USER_HAS_MATLAB_LICENSE: "true"
5864
run: |
5965
# Use sys.monitoring (PEP 669) on Python 3.12+ for faster coverage.
6066
# CTracer (sys.settrace) is catastrophically slow on 3.12 when

0 commit comments

Comments
 (0)