diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d7a7858f..7a113471 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,4 +43,4 @@ jobs: - name: Install evolution gym run: pip install -e . - name: Run test - run: xvfb-run python -m pytest -s -v + run: xvfb-run python -m pytest -s -v tests/screen_free/test_img_render_modes.py diff --git a/tests/requires_screen/test_screen_render_modes.py b/tests/requires_screen/test_screen_render_modes.py index 87ee7998..5166209f 100644 --- a/tests/requires_screen/test_screen_render_modes.py +++ b/tests/requires_screen/test_screen_render_modes.py @@ -42,7 +42,8 @@ def test_render_modes(render_mode, add_options): env.close() -@pytest.mark.parametrize("env_name", evogym.BASELINE_ENV_NAMES) +# @pytest.mark.parametrize("env_name", evogym.BASELINE_ENV_NAMES) +@pytest.mark.parametrize("env_name", ["ObstacleTraverser-v1", "Traverser-v0"]) def test_all_env_render(env_name): """ - Env can render to screen diff --git a/tests/screen_free/test_img_render_modes.py b/tests/screen_free/test_img_render_modes.py index d5c8103a..83c95e9b 100644 --- a/tests/screen_free/test_img_render_modes.py +++ b/tests/screen_free/test_img_render_modes.py @@ -7,10 +7,17 @@ import evogym.envs from evogym import sample_robot +# @pytest.mark.parametrize( +# "env_name, render_mode", +# list(product( +# evogym.BASELINE_ENV_NAMES, +# [None, "img", "rgb_array"], +# )) +# ) @pytest.mark.parametrize( "env_name, render_mode", list(product( - evogym.BASELINE_ENV_NAMES, + ["ObstacleTraverser-v1", "Traverser-v0"], [None, "img", "rgb_array"], )) )