-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gymnasium support for DDPG continuous (+Jax) (#371)
* ddpg continuous + jax * fix video recording * remove pybullet * move to usage docs * isort * update lock files * try trigger CI * update ddpg default v4 environments * trigger CI * install jax dependency * fix CI * remove windows CI --------- Co-authored-by: Costa Huang <[email protected]>
- Loading branch information
Showing
12 changed files
with
206 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,13 +174,13 @@ jobs: | |
continue-on-error: true # MUJOCO_GL=osmesa results in `free(): invalid pointer` | ||
run: poetry run pytest tests/test_mujoco.py | ||
|
||
test-mujoco-envs-windows-mac: | ||
test-mujoco-gymnasium-envs: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest, windows-latest] | ||
os: [ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -197,9 +197,68 @@ jobs: | |
run: poetry install -E "pytest mujoco dm_control" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: install mujoco dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get -y install libgl1-mesa-glx libosmesa6 libglfw3 | ||
- name: Run mujoco tests | ||
continue-on-error: true # MUJOCO_GL=osmesa results in `free(): invalid pointer` | ||
run: poetry run pytest tests/test_mujoco_gymnasium.py | ||
|
||
test-mujoco-envs-mac: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest mujoco dm_control jax" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run mujoco tests | ||
run: poetry run pytest tests/test_mujoco.py | ||
|
||
test-mujoco-gymnasium-mac: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest mujoco dm_control jax" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: Run mujoco tests | ||
run: poetry run pytest tests/test_mujoco_gymnasium.py | ||
|
||
test-mujoco_py-envs: | ||
strategy: | ||
|
@@ -234,6 +293,41 @@ jobs: | |
- name: Run mujoco_py tests | ||
run: poetry run pytest tests/test_mujoco_py.py | ||
|
||
test-mujoco_py-envs-gymnasium: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.8] | ||
poetry-version: [1.3] | ||
os: [ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
# mujoco_py tests | ||
- name: Install dependencies | ||
run: poetry install -E "pytest pybullet mujoco_py mujoco jax" | ||
- name: Run gymnasium migration dependencies | ||
run: poetry run pip install "stable_baselines3==2.0.0a1" | ||
- name: Downgrade setuptools | ||
run: poetry run pip install setuptools==59.5.0 | ||
- name: install mujoco_py dependencies | ||
run: | | ||
sudo apt-get update && sudo apt-get -y install wget unzip software-properties-common \ | ||
libgl1-mesa-dev \ | ||
libgl1-mesa-glx \ | ||
libglew-dev \ | ||
libosmesa6-dev patchelf | ||
- name: Run mujoco_py tests | ||
run: poetry run pytest tests/test_mujoco_py_gymnasium.py | ||
|
||
test-envpool-envs: | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
9f8b64b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cleanrl – ./
cleanrl-vwxyzjn.vercel.app
cleanrl-git-master-vwxyzjn.vercel.app
docs.cleanrl.dev
cleanrl.vercel.app