Adding hotfix for the test #449
Workflow file for this run
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
| name: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| # ── Full test suite (pixi, with C++ extensions) ───────────────── | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| include: | |
| - python-version: '3.10' | |
| pixi-env: py310 | |
| - python-version: '3.11' | |
| pixi-env: py311 | |
| - python-version: '3.12' | |
| pixi-env: py312 | |
| - python-version: '3.13' | |
| pixi-env: py313 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: latest | |
| environments: ${{ matrix.pixi-env }} | |
| cache: true | |
| # ── mujoco_extensions build cache ─────────────────────────────── | |
| - name: Restore mujoco_extensions build cache | |
| id: ext-cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| mujoco_extensions/build | |
| mujoco_extensions/policy_rollout/*.so | |
| key: mujoco-ext-${{ matrix.os }}-${{ matrix.pixi-env }}-${{ hashFiles('pixi.lock', 'mujoco_extensions/**/*.cpp', 'mujoco_extensions/**/*.h', 'mujoco_extensions/**/CMakeLists.txt') }} | |
| - name: Build mujoco_extensions (cache miss) | |
| if: steps.ext-cache.outputs.cache-hit != 'true' | |
| run: pixi run -e ${{ matrix.pixi-env }} build | |
| # ── Download mesh assets (avoid xdist race) ──────────────────── | |
| - name: Download meshes from release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: pixi run -e ${{ matrix.pixi-env }} python -c "from judo.utils.assets import download_and_extract_meshes; from judo import MODEL_PATH; download_and_extract_meshes(str(MODEL_PATH))" | |
| # ── Pre-warm robot_descriptions cache (avoid xdist race) ─────── | |
| - name: Cache mujoco_menagerie meshes | |
| run: pixi run -e ${{ matrix.pixi-env }} python -c "from robot_descriptions import spot_mj_description" | |
| # ── Tests ─────────────────────────────────────────────────────── | |
| - name: Run tests | |
| run: pixi run -e ${{ matrix.pixi-env }} pytest -rsx |