Skip to content

Commit e30ae5c

Browse files
authored
[BugFix] Nvidia not found fix (#922)
1 parent 69a31bb commit e30ae5c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@ on:
1010
workflow_dispatch:
1111
jobs:
1212
build_docs_job:
13-
runs-on: ubuntu-20.04
14-
strategy:
15-
matrix:
16-
include:
17-
- os: linux.g5.4xlarge.nvidia.gpu
18-
python-version: 3.8
13+
runs-on: linux.g5.4xlarge.nvidia.gpu
1914
defaults:
2015
run:
2116
shell: bash -l {0}
22-
container: nvidia/cudagl:11.4.0-base
17+
container: nvidia/cudagl:11.4.0-runtime
2318
steps:
2419
- name: Install deps
2520
run: |
@@ -39,7 +34,7 @@ jobs:
3934
bash ./miniconda.sh -b -f -p "${conda_dir}"
4035
eval "$(${conda_dir}/bin/conda shell.bash hook)"
4136
printf "* Creating a test environment\n"
42-
conda create --prefix "${env_dir}" -y python="$PYTHON_VERSION"
37+
conda create --prefix "${env_dir}" -y python=3.8
4338
printf "* Activating\n"
4439
conda activate "${env_dir}"
4540
- name: Update pip
@@ -54,7 +49,8 @@ jobs:
5449
- name: Install PyTorch
5550
shell: bash
5651
run: |
57-
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu118 --quiet --root-user-action=ignore
52+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu --quiet --root-user-action=ignore
53+
#pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu118 --quiet --root-user-action=ignore
5854
- name: Install tensordict
5955
run: |
6056
pip3 install git+https://github.com/pytorch-labs/tensordict.git --quiet --root-user-action=ignore
@@ -70,7 +66,7 @@ jobs:
7066
mkdir _tmp
7167
cd _tmp
7268
PYOPENGL_PLATFORM=egl MUJOCO_GL=egl python3 -c """from torchrl.envs.libs.dm_control import DMControlEnv
73-
print(DMControlEnv('cheetah', 'run').reset())"""
69+
print(DMControlEnv('cheetah', 'run', from_pixels=True).reset())"""
7470
cd ..
7571
- name: Build the docset
7672
id: build_doc

0 commit comments

Comments
 (0)