diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14e8de1f91..266a1c75d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -774,6 +774,8 @@ jobs: env: ON_LOCAL: true ON_UBUNTU: true + TESTING_MINIMAL: true + steps: - name: "Install Git and checkout project" diff --git a/tests/test_launcher.py b/tests/test_launcher.py index d536c31f15..4ecf60fe15 100644 --- a/tests/test_launcher.py +++ b/tests/test_launcher.py @@ -68,6 +68,7 @@ ON_LOCAL, PATCH_MAPDL_START, QUICK_LAUNCH_SWITCHES, + TESTING_MINIMAL, NullContext, requires, ) @@ -1390,9 +1391,14 @@ def test_launch_on_hpc_not_found_ansys(mck_sc, mck_lgrpc, mck_kj, monkeypatch): "a long scontrol...\nJobState=RUNNING\n...\nBatchHost=myhostname\n...\nin message" ) - with pytest.warns( - UserWarning, match="PyMAPDL could not find the ANSYS executable." - ): + if TESTING_MINIMAL: + context = NullContext() + else: + context = pytest.warns( + UserWarning, match="PyMAPDL could not find the ANSYS executable." + ) + + with context: mapdl = launch_mapdl( launch_on_hpc=True, exec_file=exec_file,