Skip to content

Commit 01e5660

Browse files
author
Vincent Moens
committed
Update
[ghstack-poisoned]
2 parents 75de0c2 + f5f1d56 commit 01e5660

File tree

249 files changed

+9735
-3083
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+9735
-3083
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
pip install --upgrade setuptools
4+
5+
export TORCHRL_BUILD_VERSION=0.8.0

.github/scripts/pre-build-script.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
pip install --upgrade setuptools
4+
5+
${CONDA_RUN} pip install "pybind11[global]"
6+
${CONDA_RUN} conda install anaconda::cmake -y
7+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U

.github/scripts/td_script.sh

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
#!/bin/bash
22

3-
export TORCHRL_BUILD_VERSION=0.7.0
3+
export TORCHRL_BUILD_VERSION=0.8.0
4+
pip install --upgrade setuptools
45

5-
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U
6+
# Check if ARCH is set to aarch64
7+
ARCH=${ARCH:-} # This sets ARCH to an empty string if it's not defined
8+
9+
if pip list | grep -q torch; then
10+
echo "Torch is installed."
11+
12+
# ${CONDA_RUN} conda install 'anaconda::cmake>=3.22' -y
13+
14+
${CONDA_RUN} pip install "pybind11[global]"
15+
16+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
17+
elif [[ -n "${SMOKE_TEST_SCRIPT:-}" ]]; then
18+
${CONDA_RUN} ${PIP_INSTALL_TORCH}
19+
# TODO: revert when nightlies of tensordict are fixed
20+
# if [[ "$ARCH" == "aarch64" ]]; then
21+
22+
23+
# ${CONDA_RUN} conda install 'anaconda::cmake>=3.22' -y
24+
25+
${CONDA_RUN} pip install "pybind11[global]"
26+
27+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
28+
else
29+
echo "Torch is not installed - tensordict will be installed later."
30+
fi

.github/scripts/version_script.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set TORCHRL_BUILD_VERSION=0.7.0
2+
set TORCHRL_BUILD_VERSION=0.8.0
33
echo TORCHRL_BUILD_VERSION is set to %TORCHRL_BUILD_VERSION%
44

55
@echo on
@@ -36,6 +36,9 @@ if "%CU_VERSION%" == "xpu" call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat
3636

3737
set DISTUTILS_USE_SDK=1
3838

39+
:: Upgrade setuptools before installing PyTorch
40+
pip install --upgrade setuptools==72.1.0 || exit /b 1
41+
3942
set args=%1
4043
shift
4144
:start

.github/unittest/linux/scripts/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ dependencies:
1717
- pytest-instafail
1818
- pytest-rerunfailures
1919
- pytest-timeout
20+
- pytest-asyncio
2021
- expecttest
22+
- pybind11[global]
2123
- pyyaml
2224
- scipy
2325
- hydra-core

.github/unittest/linux/scripts/run_all.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ set -v
99

1010
if [[ $OSTYPE != 'darwin'* ]]; then
1111
apt-get update && apt-get upgrade -y
12-
apt-get install -y vim git wget libsdl2-dev libsdl2-2.0-0
12+
apt-get install -y vim git wget libsdl2-dev libsdl2-2.0-0 cmake
1313

1414
apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
15-
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2
15+
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2 xvfb
1616

1717
if [ "${CU_VERSION:-}" == cpu ] ; then
1818
# solves version `GLIBCXX_3.4.29' not found for tensorboard
@@ -76,13 +76,12 @@ else
7676
export MUJOCO_GL=egl
7777
fi
7878

79-
export DISPLAY=:0
8079
export SDL_VIDEODRIVER=dummy
8180

8281
# legacy from bash scripts: remove?
8382
conda env config vars set \
8483
MAX_IDLE_COUNT=1000 \
85-
MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG TOKENIZERS_PARALLELISM=true
84+
MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:99 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG TOKENIZERS_PARALLELISM=true
8685

8786
pip3 install pip --upgrade
8887
pip install virtualenv
@@ -97,9 +96,9 @@ echo "installing gymnasium"
9796
if [[ "$PYTHON_VERSION" == "3.12" ]]; then
9897
pip3 install ale-py
9998
pip3 install sympy
100-
pip3 install "gymnasium[accept-rom-license,mujoco]<1.0" mo-gymnasium[mujoco]
99+
pip3 install "gymnasium[mujoco]>=1.1" mo-gymnasium[mujoco]
101100
else
102-
pip3 install "gymnasium[atari,accept-rom-license,mujoco]<1.0" mo-gymnasium[mujoco]
101+
pip3 install "gymnasium[atari,mujoco]>=1.1" mo-gymnasium[mujoco]
103102
fi
104103
pip3 install "mujoco" -U
105104

@@ -202,6 +201,8 @@ export CKPT_BACKEND=torch
202201
export MAX_IDLE_COUNT=100
203202
export BATCHED_PIPE_TIMEOUT=60
204203

204+
Xvfb :99 -screen 0 1024x768x24 &
205+
205206
pytest test/smoke_test.py -v --durations 200
206207
pytest test/smoke_test_deps.py -v --durations 200 -k 'test_gym or test_dm_control_pixels or test_dm_control or test_tb'
207208
if [ "${CU_VERSION:-}" != cpu ] ; then

.github/unittest/linux_distributed/scripts/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ dependencies:
1616
- pytest-mock
1717
- pytest-instafail
1818
- pytest-rerunfailures
19+
- pytest-asyncio
1920
- expecttest
21+
- pybind11[global]
2022
- pyyaml
2123
- scipy
2224
- hydra-core

.github/unittest/linux_distributed/scripts/setup_env.sh

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565
export MUJOCO_GL=$PRIVATE_MUJOCO_GL
6666
conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco210 \
6767
MAX_IDLE_COUNT=1000 \
68-
DISPLAY=unix:0.0 \
68+
DISPLAY=:99 \
6969
MJLIB_PATH=$root_dir/.mujoco/mujoco-2.1.1/lib/libmujoco.so.2.1.1 \
7070
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$root_dir/.mujoco/mujoco210/bin \
7171
SDL_VIDEODRIVER=dummy \
@@ -96,32 +96,8 @@ if [[ $OSTYPE != 'darwin'* ]]; then
9696
# install ale-py: manylinux names are broken for CentOS so we need to manually download and
9797
# rename them
9898
PY_VERSION=$(python --version)
99-
echo "installing ale-py for ${PY_PY_VERSION}"
100-
if [[ $PY_VERSION == *"3.7"* ]]; then
101-
wget https://files.pythonhosted.org/packages/ab/fd/6615982d9460df7f476cad265af1378057eee9daaa8e0026de4cedbaffbd/ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
102-
pip install ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
103-
rm ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
104-
elif [[ $PY_VERSION == *"3.8"* ]]; then
105-
wget https://files.pythonhosted.org/packages/0f/8a/feed20571a697588bc4bfef05d6a487429c84f31406a52f8af295a0346a2/ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
106-
pip install ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
107-
rm ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
108-
elif [[ $PY_VERSION == *"3.9"* ]]; then
109-
wget https://files.pythonhosted.org/packages/a0/98/4316c1cedd9934f9a91b6e27a9be126043b4445594b40cfa391c8de2e5e8/ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
110-
pip install ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
111-
rm ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
112-
elif [[ $PY_VERSION == *"3.10"* ]]; then
113-
wget https://files.pythonhosted.org/packages/60/1b/3adde7f44f79fcc50d0a00a0643255e48024c4c3977359747d149dc43500/ale_py-0.8.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
114-
mv ale_py-0.8.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl ale_py-0.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
115-
pip install ale_py-0.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
116-
rm ale_py-0.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
117-
elif [[ $PY_VERSION == *"3.11"* ]]; then
118-
wget https://files.pythonhosted.org/packages/60/1b/3adde7f44f79fcc50d0a00a0643255e48024c4c3977359747d149dc43500/ale_py-0.8.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
119-
mv ale_py-0.8.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
120-
pip install ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
121-
rm ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
122-
fi
12399
echo "installing gymnasium"
124-
pip install "gymnasium[atari,accept-rom-license]<1.0"
100+
pip install "gymnasium[atari]>=1.1"
125101
else
126-
pip install "gymnasium[atari,accept-rom-license]<1.0"
102+
pip install "gymnasium[atari]>=1.1"
127103
fi

.github/unittest/linux_libs/scripts_ataridqn/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ dependencies:
1515
- pytest-instafail
1616
- pytest-rerunfailures
1717
- pytest-error-for-skips
18+
- pytest-asyncio
1819
- expecttest
20+
- pybind11[global]
1921
- pyyaml
2022
- scipy
2123
- hydra-core

.github/unittest/linux_libs/scripts_ataridqn/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export LAZY_LEGACY_OP=False

.github/unittest/linux_libs/scripts_ataridqn/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111

12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \

.github/unittest/linux_libs/scripts_brax/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
18+
- pybind11[global]
1719
- pyyaml
1820
- scipy
1921
- hydra-core

.github/unittest/linux_libs/scripts_brax/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
set -euxo pipefail
99

10-
apt-get update && apt-get upgrade -y && apt-get install -y git
10+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1111
# Avoid error: "fatal: unsafe repository"
1212
git config --global --add safe.directory '*'
1313
apt-get install -y wget \

.github/unittest/linux_libs/scripts_chess/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
18+
- pybind11[global]
1719
- pyyaml
1820
- scipy
1921
- hydra-core

.github/unittest/linux_libs/scripts_chess/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ unset PYTORCH_VERSION
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
77
apt-get update && apt-get install -y \
8+
cmake \
89
git \
910
wget \
1011
gcc \

.github/unittest/linux_libs/scripts_chess/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get install -y git wget
8+
apt-get update && apt-get install -y git wget cmake
99

1010
export PYTORCH_TEST_WITH_SLOW='1'
1111
export LAZY_LEGACY_OP=False

.github/unittest/linux_libs/scripts_chess/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \

.github/unittest/linux_libs/scripts_d4rl/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
18+
- pybind11[global]
1719
- pyyaml
1820
- scipy
1921
- hydra-core

.github/unittest/linux_libs/scripts_d4rl/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
# we install d4rl here bc env variables have been updated

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \
@@ -110,7 +110,7 @@ export MUJOCO_GL=$PRIVATE_MUJOCO_GL
110110
conda env config vars set \
111111
MAX_IDLE_COUNT=1000 \
112112
MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco200_linux \
113-
DISPLAY=unix:0.0 \
113+
DISPLAY=:99 \
114114
MJLIB_PATH=$root_dir/.mujoco/mujoco200_linux/bin/libmujoco200.so \
115115
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$root_dir/.mujoco/mujoco200_linux/bin \
116116
MUJOCO_PY_MJKEY_PATH=$root_dir/.mujoco/mjkey.txt \

.github/unittest/linux_libs/scripts_envpool/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ dependencies:
1515
- pytest-instafail
1616
- pytest-rerunfailures
1717
- pytest-error-for-skips
18+
- pytest-asyncio
1819
- expecttest
20+
- pybind11[global]
1921
- pyyaml
2022
- scipy
2123
- dm_control

.github/unittest/linux_libs/scripts_envpool/setup_env.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
apt-get update && apt-get upgrade -y && apt-get install -y git
9+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1010
# Avoid error: "fatal: unsafe repository"
1111
git config --global --add safe.directory '*'
1212
apt-get install -y wget \
@@ -81,15 +81,7 @@ if [[ $OSTYPE != 'darwin'* ]]; then
8181
# rename them
8282
PY_VERSION=$(python --version)
8383
echo "installing ale-py for ${PY_PY_VERSION}"
84-
if [[ $PY_VERSION == *"3.7"* ]]; then
85-
wget https://files.pythonhosted.org/packages/ab/fd/6615982d9460df7f476cad265af1378057eee9daaa8e0026de4cedbaffbd/ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
86-
pip install ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
87-
rm ale_py-0.8.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
88-
elif [[ $PY_VERSION == *"3.8"* ]]; then
89-
wget https://files.pythonhosted.org/packages/0f/8a/feed20571a697588bc4bfef05d6a487429c84f31406a52f8af295a0346a2/ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
90-
pip install ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
91-
rm ale_py-0.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
92-
elif [[ $PY_VERSION == *"3.9"* ]]; then
84+
if [[ $PY_VERSION == *"3.9"* ]]; then
9385
wget https://files.pythonhosted.org/packages/a0/98/4316c1cedd9934f9a91b6e27a9be126043b4445594b40cfa391c8de2e5e8/ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
9486
pip install ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
9587
rm ale_py-0.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

.github/unittest/linux_libs/scripts_gen-dgrl/environment.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ dependencies:
1313
- pytest-instafail
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
16+
- pytest-asyncio
1617
- expecttest
18+
- pybind11[global]
1719
- pyyaml
1820
- scipy
1921
- hydra-core

.github/unittest/linux_libs/scripts_gen-dgrl/run_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_gen-dgrl/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -e
99
set -v
1010

11-
apt-get update && apt-get upgrade -y && apt-get install -y git
11+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1212
# Avoid error: "fatal: unsafe repository"
1313
git config --global --add safe.directory '*'
1414
apt-get install -y wget \

.github/unittest/linux_libs/scripts_gym/batch_scripts.sh

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ do
126126
conda activate ./cloned_env
127127

128128
echo "Testing gym version: ${GYM_VERSION}"
129-
pip3 install 'gymnasium[atari,accept-rom-license,ale-py]'==$GYM_VERSION
129+
pip3 install 'gymnasium[atari,ale-py]'==$GYM_VERSION
130130

131131
$DIR/run_test.sh
132132

@@ -135,12 +135,27 @@ do
135135
conda env remove --prefix ./cloned_env -y
136136
done
137137

138+
# Prev gymnasium
139+
conda deactivate
140+
conda create --prefix ./cloned_env --clone ./env -y
141+
conda activate ./cloned_env
142+
143+
pip3 install 'gymnasium[ale-py,atari]>=1.1.0' mo-gymnasium gymnasium-robotics -U
144+
145+
$DIR/run_test.sh
146+
147+
# delete the conda copy
148+
conda deactivate
149+
conda env remove --prefix ./cloned_env -y
150+
151+
# Skip 1.0.0
152+
138153
# Latest gymnasium
139154
conda deactivate
140155
conda create --prefix ./cloned_env --clone ./env -y
141156
conda activate ./cloned_env
142157

143-
pip3 install 'gymnasium[accept-rom-license,ale-py,atari]<1.0' mo-gymnasium gymnasium-robotics -U
158+
pip3 install 'gymnasium[ale-py,atari]>=1.1.0' mo-gymnasium gymnasium-robotics -U
144159

145160
$DIR/run_test.sh
146161

0 commit comments

Comments
 (0)