Repository navigation
Add copy-only cross-embodiment retargeting (G1 ⇄ GR1) #222
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: AutoData CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["main"] | |
| # Cancel superseded runs on the same ref. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| pre_commit: | |
| name: Pre-commit | |
| # Lint-only job: no GPU needed, so keep it off the scarce self-hosted GPU pool. | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| # Linting does not need the submodules; the hooks exclude submodules/. | |
| # No post-checkout git auth is needed here, so don't persist credentials | |
| # into the workspace that later (repo-controlled) steps could read. | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| # Run pre-commit directly rather than via pre-commit/action, which pins | |
| # actions/cache@v4 (Node 20, deprecated). We already point PRE_COMMIT_HOME | |
| # at a fresh dir, so the action's caching brings nothing here anyway. | |
| - name: Run pre-commit | |
| env: | |
| PRE_COMMIT_HOME: /tmp/pre-commit-cache | |
| run: | | |
| pip install --no-cache-dir pre-commit==4.6.0 | |
| pre-commit run --all-files --show-diff-on-failure --verbose | |
| run_tests: | |
| name: Run tests (GPU, repo Docker) | |
| runs-on: [self-hosted, gpu] | |
| timeout-minutes: 120 | |
| needs: [pre_commit] | |
| # Skip GPU work for pull requests opened from forks (no secrets, untrusted code). | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| # Premerge runs the correctness suites: e2e (GPU/Sim data-gen) plus interfaces, | |
| # core, and utils (CPU unit tests). The datagen_perf/ success-rate benchmarks (500 | |
| # trials each) are heavy and run in the nightly instead. No marker filter, so | |
| # both subprocess and unit tests run. | |
| env: | |
| TEST_PATH: "autodata_tests/e2e/ autodata_tests/interfaces/ autodata_tests/core/ autodata_tests/utils/ autodata_tests/retargeting/" | |
| steps: | |
| - name: nvidia-smi | |
| run: nvidia-smi | |
| # Clear stale submodule symlinks/locks left by a previous run on the host. | |
| - name: Clean up submodules directory | |
| run: | | |
| rm -f .git/modules/submodules/IsaacLab-Arena/index.lock || true | |
| rm -rf submodules/* || true | |
| - name: Mark repo as safe for git | |
| run: git config --global --add safe.directory "$PWD" | |
| - name: Checkout (recursive submodules) | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Pull LFS test data | |
| run: | | |
| git lfs install --local | |
| git lfs pull | |
| - name: Run tests | |
| # The GPU runners are shared. Use an empty job-temporary Docker config so | |
| # stale credentials cannot override anonymous access to the public base image, | |
| # and this job cannot modify the runner's persistent Docker login. | |
| env: | |
| DOCKER_CONFIG: ${{ runner.temp }}/autodata-docker | |
| run: | | |
| mkdir -p "${DOCKER_CONFIG}" | |
| ./scripts/ci/run_tests.sh | |
| build_docs: | |
| name: Build docs | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: false | |
| lfs: true | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build docs | |
| run: | | |
| pip install --no-cache-dir -r docs/requirements.txt | |
| make -C docs html SPHINXOPTS=-W |