Skip to content

Commit

Permalink
fix gymnasium tests worflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEimer committed Dec 11, 2023
1 parent 18a8ca7 commit 6b7b00c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
# Miniconda is available in $CONDA env var
$CONDA/bin/conda create -n testenv --yes pip wheel gxx_linux-64 gcc_linux-64 python=${{ matrix.python-version }}
$CONDA/envs/testenv/bin/python3 -m pip install --upgrade pip
$CONDA/envs/testenv/bin/pip3 install -e .[dev,dm_control,mario,brax]
$CONDA/envs/testenv/bin/pip3 install -e .[dev,dm_control,mario,brax,box2d]
- name: Tests
timeout-minutes: 60
Expand Down
2 changes: 1 addition & 1 deletion carl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def check_spec(spec_name: str) -> bool:
found = check_spec("py4j")
if found:
register(
id="carl/CARLMario-v0",
id="carl/CARLMarioEnv-v0",
entry_point="carl.envs.gymnasium:CARLMarioEnv",
)
except:
Expand Down
2 changes: 0 additions & 2 deletions test/test_gymnasium_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def test_envs(self):
if inspect.isclass(env_obj) and "CARL" in env_name:
try:
env_obj.get_context_features()

env = env_obj()
env._progress_instance()
env._update_context()
Expand All @@ -35,7 +34,6 @@ def test_registration(self):
def test_make(self):
for e in carl.envs.__all__:
if "RNA" not in e and "Brax" not in e and "Dmc" not in e:
print(e)
env_name = f"carl/{e}-v0"
env = gym.make(env_name)
self.assertTrue(isinstance(env, gym.Env))
Expand Down

0 comments on commit 6b7b00c

Please sign in to comment.