Skip to content

Commit

Permalink
Attempt to isolate error
Browse files Browse the repository at this point in the history
  • Loading branch information
jagdeepsb committed Jun 13, 2024
1 parent 217bdbc commit 2c3c727
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tests/requires_screen/test_screen_render_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion tests/screen_free/test_img_render_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
))
)
Expand Down

0 comments on commit 2c3c727

Please sign in to comment.