Skip to content

Commit

Permalink
Disable linux native engine tests. Time-out on runners
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Sep 1, 2024
1 parent 34bc4cd commit 83bd85f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
cmake_flags: ""
cxx_flags: ""
python_version: "3.12"
pffdtd_engine: "build/src/cpp/main_3d/pffdtd_3d"
pffdtd_engine: ""

- name: macOS-X64
os: macos-13
Expand Down
14 changes: 7 additions & 7 deletions src/python/test/test_sim3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ def _skip_if_native_engine_unavailable(engine):
pytest.skip("Native engine not available")


def _skip_if_not_enough_memory(engine):
if engine == "python":
if psutil.virtual_memory().available <= 6e9:
pytest.skip("Not enough memory")
# def _skip_if_not_enough_memory(engine):
# if engine == "python":
# if psutil.virtual_memory().available <= 6e9:
# pytest.skip("Not enough memory")


@pytest.mark.parametrize("engine", ["python", "native"])
def test_sim3d_locate_sound_source(tmp_path, engine):
_skip_if_native_engine_unavailable(engine)
_skip_if_not_enough_memory(engine)
# _skip_if_not_enough_memory(engine)

fmin = 20
fmax = 1000
Expand Down Expand Up @@ -154,7 +154,7 @@ def test_sim3d_locate_sound_source(tmp_path, engine):
@pytest.mark.parametrize("engine", ["python", "native"])
def test_sim3d_infinite_baffle(tmp_path, engine):
_skip_if_native_engine_unavailable(engine)
_skip_if_not_enough_memory(engine)
# _skip_if_not_enough_memory(engine)

fmin = 20
fmax = 1000
Expand Down Expand Up @@ -265,7 +265,7 @@ def test_sim3d_infinite_baffle(tmp_path, engine):
)
def test_sim3d_detect_room_modes(tmp_path, engine, room, fmax, ppw, fcc, dx_scale, tolerance):
_skip_if_native_engine_unavailable(engine)
_skip_if_not_enough_memory(engine)
# _skip_if_not_enough_memory(engine)

L = room[0]
W = room[1]
Expand Down

0 comments on commit 83bd85f

Please sign in to comment.