Skip to content

Commit

Permalink
[misc] Install stable CPU-only torch wheel on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
duburcqa committed Feb 19, 2025
1 parent f8b9664 commit 8b7f49d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
git config --global advice.detachedHead false
- name: Install pre-compiled binaries for additional gym-jiminy dependencies
run: |
"${PYTHON_EXECUTABLE}" -m pip install torch -f https://download.pytorch.org/whl/torch
"${PYTHON_EXECUTABLE}" -m pip install torch --no-cache-dir --index-url https://download.pytorch.org/whl/nightly/cpu
"${PYTHON_EXECUTABLE}" -m pip install "gymnasium>=0.28,<1.1" "stable_baselines3>=2.0,<2.5"
- name: Install latest numpy version at build-time for run-time binary compatibility
run: |
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ jobs:
"${PYTHON_EXECUTABLE}" -m pip install delocate twine
- name: Install pre-compiled binaries for additional gym-jiminy dependencies
run: |
# FIXME: Pre-release 2.6 is needed to install torch for Python 3.13 on MacOS
if [[ "${{ matrix.OS }}" != 'macos-13' ]] ; then
"${PYTHON_EXECUTABLE}" -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
else
"${PYTHON_EXECUTABLE}" -m pip install "torch" -f https://download.pytorch.org/whl/torch
fi
"${PYTHON_EXECUTABLE}" -m pip install torch --no-cache-dir --index-url https://download.pytorch.org/whl/nightly/cpu
"${PYTHON_EXECUTABLE}" -m pip install "gymnasium>=0.28,<1.1" "stable_baselines3>=2.0,<2.5"
- name: Install latest numpy version at build-time for run-time binary compatibility
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
if [[ "${{ matrix.GENERATOR }}" == 'Ninja' ]] ; then
sudo apt install ninja-build
fi
"${PYTHON_EXECUTABLE}" -m pip install torch -f https://download.pytorch.org/whl/torch
"${PYTHON_EXECUTABLE}" -m pip install torch --no-cache-dir --index-url https://download.pytorch.org/whl/nightly/cpu
"${PYTHON_EXECUTABLE}" -m pip install "gymnasium>=0.28,<1.1" "stable_baselines3>=2.0,<2.5"
#####################################################################################
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ jobs:
python -m pip install pefile machomachomangler
- name: Install pre-compiled binaries for additional gym-jiminy dependencies
run: |
# FIXME: Pre-release 2.6 is needed to install torch for Python 3.13 on Windows
python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu
"${PYTHON_EXECUTABLE}" -m pip install torch --no-cache-dir --index-url https://download.pytorch.org/whl/nightly/cpu
python -m pip install "gymnasium>=0.28,<1.1" "stable_baselines3>=2.0,<2.5"
- name: Install latest numpy version at build-time for run-time binary compatibility
run: |
Expand Down

0 comments on commit 8b7f49d

Please sign in to comment.