File tree Expand file tree Collapse file tree 3 files changed +56
-2
lines changed
.circleci/unittest/linux/scripts Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
30
30
if [ " ${CU_VERSION:- } " == cpu ] ; then
31
31
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
32
32
else
33
- pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu113
33
+ pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
34
34
fi
35
35
36
36
# smoke test
Original file line number Diff line number Diff line change 63
63
fi
64
64
65
65
export MUJOCO_GL=$PRIVATE_MUJOCO_GL
66
- conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210 \
66
+ if [ " ${CU_VERSION:- } " == cpu ]; then
67
+ conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210 \
67
68
DISPLAY=unix:0.0 \
68
69
MJLIB_PATH=$root_dir /.mujoco/mujoco-2.1.1/lib/libmujoco.so.2.1.1 \
69
70
LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco210/bin \
70
71
SDL_VIDEODRIVER=dummy \
71
72
MUJOCO_GL=$PRIVATE_MUJOCO_GL \
72
73
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL
74
+ else
75
+ conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210 \
76
+ MJLIB_PATH=$root_dir /.mujoco/mujoco-2.1.1/lib/libmujoco.so.2.1.1 \
77
+ LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco210/bin \
78
+ MUJOCO_GL=$PRIVATE_MUJOCO_GL \
79
+ PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL
80
+ fi
73
81
74
82
# Software rendering requires GLX and OSMesa.
75
83
if [ $PRIVATE_MUJOCO_GL == ' egl' ] || [ $PRIVATE_MUJOCO_GL == ' osmesa' ] ; then
Original file line number Diff line number Diff line change
1
+ name : Unit-tests on Linux CPU
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - nightly
8
+ - main
9
+ - release/*
10
+ workflow_dispatch :
11
+
12
+ env :
13
+ CHANNEL : " nightly"
14
+
15
+ jobs :
16
+ tests :
17
+ strategy :
18
+ matrix :
19
+ python_version : ["3.8", "3.9", "3.10"]
20
+ fail-fast : false
21
+ uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
22
+ with :
23
+ runner : linux.12xlarge
24
+ repository : pytorch/rl
25
+ timeout : 90
26
+ script : |
27
+ # Set env vars from matrix
28
+ export PYTHON_VERSION=${{ matrix.python_version }}
29
+ export CU_VERSION="cpu"
30
+
31
+ echo "PYTHON_VERSION: $PYTHON_VERSION"
32
+ echo "CU_VERSION: $CU_VERSION"
33
+
34
+ cd /work
35
+
36
+ ## setup_env.sh
37
+ ./.circleci/unittest/linux/scripts/setup_env.sh
38
+
39
+ ## install.sh
40
+ ./.circleci/unittest/linux/scripts/install.sh
41
+
42
+ ## run_test.sh
43
+ ./.circleci/unittest/linux/scripts/run_test.sh
44
+
45
+ ## post_process.sh
46
+ ./.circleci/unittest/linux/scripts/post_process.sh
You can’t perform that action at this time.
0 commit comments