Skip to content

Commit

Permalink
[CI] Linux Olddeps tests to Nova (pytorch#1289)
Browse files Browse the repository at this point in the history
Co-authored-by: vmoens <vincentmoens@gmail.com>
  • Loading branch information
osalpekar and vmoens authored Aug 30, 2023
1 parent f8777a6 commit 7205a5a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/unittest/linux_olddeps/scripts_gym_0_13/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ env_dir="${root_dir}/env"
lib_dir="${env_dir}/lib"

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$lib_dir
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/work/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/pytorch/rl/mujoco-py/mujoco_py/binaries/linux/mujoco210/bin
export MKL_THREADING_LAYER=GNU

python .circleci/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test.py -v --durations 200
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test-linux-olddeps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Olddeps Tests on Linux

on:
pull_request:
push:
branches:
- nightly
- main
- release/*
workflow_dispatch:

jobs:
unittests:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
repository: pytorch/rl
runner: "linux.g5.4xlarge.nvidia.gpu"
# gpu-arch-type: cuda
# gpu-arch-version: "11.7"
docker-image: "nvidia/cudagl:11.4.0-base"
timeout: 120
script: |
set -euo pipefail
export PYTHON_VERSION="3.9"
export CU_VERSION="cu116"
export TAR_OPTIONS="--no-same-owner"
export UPLOAD_CHANNEL="nightly"
export TF_CPP_MIN_LOG_LEVEL=0
bash .circleci/unittest/linux_olddeps/scripts_gym_0_13/setup_env.sh
bash .circleci/unittest/linux_olddeps/scripts_gym_0_13/batch_scripts.sh
bash .circleci/unittest/linux_olddeps/scripts_gym_0_13/post_process.sh

0 comments on commit 7205a5a

Please sign in to comment.