Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/gpu_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,16 @@ jobs:
shell: bash
run: |
source .venv/bin/activate
mkdir -p /tmp/libero-assets/libero/libero
export LIBERO_CONFIG_PATH="$(pwd)/.github/assets/libero"
# Point LIBERO at the assets bundled inside the installed package (the
# fork's MANIFEST grafts bddl_files/init_files/assets) so the real-sim
# GPU test can build a genuine OffScreenRenderEnv. The .github/assets/libero
# config used by the mocked CPU tests points every path at an empty /tmp
# tree, which is fine for mocks but not for a real env build (it reads the
# bddl file via get_libero_path("bddl_files")).
export LIBERO_CONFIG_PATH=/tmp/libero-cfg
mkdir -p "$LIBERO_CONFIG_PATH"
touch "$LIBERO_CONFIG_PATH/config.yaml" # pre-create so the LIBERO import skips its first-run input() prompt
python -c "from libero.libero import set_libero_default_path; set_libero_default_path()"
pytest -m "gpu" -n 0 -v tests/

stop-runner:
Expand Down
1 change: 1 addition & 0 deletions tests/envs/test_libero_control_freq.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def test_control_freq_reaches_real_robosuite_sim():
n_envs=1,
gym_kwargs={"task_ids": {"libero_10": [0]}, "control_freq": 13},
env_cls=gym.vector.SyncVectorEnv,
init_states=False,
)
vec = envs["libero_10"][0]
try:
Expand Down
Loading