1818jobs :
1919 tests :
2020 strategy :
21+ fail-fast : false # continue on one test failing
2122 matrix :
2223 simulator : [isaacgym, isaacsim]
23- name : Run ${{ matrix.simulator }} Tests
24- runs-on : codebuild-holosoma-gpu-build-${{ github.run_id }}-${{ github.run_attempt }}
24+ multigpu : ["False"]
25+ # no multigpu isaacsim tests for now
26+ include :
27+ - simulator : isaacgym
28+ multigpu : " True"
29+ name : Run ${{ matrix.simulator }} Tests with ${{ matrix.multigpu == 'True' && 'multi-gpu' || 'single-gpu' }}
30+ runs-on :
31+ - codebuild-holosoma-a10g-${{ matrix.multigpu == 'True' && 'x4' || 'x1' }}-gpu-build-${{ github.run_id }}-${{ github.run_attempt }}
32+ continue-on-error : true
2533 container :
26- image : 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma:latest
34+ image : 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma-${{ matrix.simulator }} :latest
2735 options : " --gpus all --runtime=nvidia --shm-size=12g"
28- volumes :
29- - " precommit-cache:/github/home/.cache/pre-commit "
36+ env :
37+ HOLOSOMA_MULTIGPU : ${{ matrix.multigpu }}
3038 steps :
3139 - name : Checkout code
3240 uses : actions/checkout@v6
@@ -41,11 +49,42 @@ jobs:
4149 fi
4250 bash tests/ci/${{ matrix.simulator }}_ci_tests.sh
4351
52+ e2e-tests :
53+ strategy :
54+ fail-fast : false # continue on one test failing
55+ # e2e only on isaacgym single gpu for now
56+ matrix :
57+ simulator : [isaacgym]
58+ multigpu : ["False"]
59+ name : Run ${{ matrix.simulator }} Tests end-to-end with ${{ matrix.multigpu == 'True' && 'multi-gpu' || 'single-gpu' }}
60+ runs-on :
61+ - codebuild-holosoma-a10g-${{ matrix.multigpu == 'True' && 'x4' || 'x1' }}-gpu-build-${{ github.run_id }}-${{ github.run_attempt }}
62+ continue-on-error : true
63+ container :
64+ # needs both hsgym and hsinference envs
65+ image : 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma:latest
66+ options : " --gpus all --runtime=nvidia --shm-size=12g"
67+ env :
68+ HOLOSOMA_MULTIGPU : ${{ matrix.multigpu }}
69+ steps :
70+ - name : Checkout code
71+ uses : actions/checkout@v6
72+ - name : Pytest
73+ id : pytest
74+ shell : bash
75+ run : |
76+ ln -s /root/.holosoma_deps "$HOME/.holosoma_deps"
77+ if [[ ! -L /workspace/holosoma ]]; then
78+ rm -rf /workspace/holosoma
79+ ln -sfF "$GITHUB_WORKSPACE" /workspace/holosoma
80+ fi
81+ bash tests/ci/${{ matrix.simulator }}_e2e_ci_tests.sh
82+
4483 inference-tests :
4584 name : Run Inference Unit Tests
4685 runs-on : codebuild-holosoma-cpu-build-${{ github.run_id }}-${{ github.run_attempt }}
4786 container :
48- # TODO: Switch to holosoma-inference:latest once it's available in ECR
87+ # TODO: Switch to ` holosoma-inference` once it's been confirmed functional
4988 # image: 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma-inference:latest
5089 # Until then, the inference tests will run in isaacsim env.
5190 image : 982423663241.dkr.ecr.us-west-2.amazonaws.com/holosoma:latest
0 commit comments