|
| 1 | +# Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). |
| 2 | +# All rights reserved. |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: BSD-3-Clause |
| 5 | + |
| 6 | +name: Bisection Agent CI |
| 7 | + |
| 8 | +on: |
| 9 | + pull_request: |
| 10 | + paths: |
| 11 | + - "tools/perf_bisection/**" |
| 12 | + - "tools/perf_smoke_test/**" |
| 13 | + - "skills/developer/perf-*/**" |
| 14 | + - ".agents/skills/isaaclab-perf-*" |
| 15 | + - ".github/workflows/bisection-agent-ci.yml" |
| 16 | + push: |
| 17 | + branches: |
| 18 | + - develop |
| 19 | + paths: |
| 20 | + - "tools/perf_bisection/**" |
| 21 | + - "tools/perf_smoke_test/**" |
| 22 | + - "skills/developer/perf-*/**" |
| 23 | + - ".agents/skills/isaaclab-perf-*" |
| 24 | + - ".github/workflows/bisection-agent-ci.yml" |
| 25 | + workflow_dispatch: |
| 26 | + |
| 27 | +permissions: |
| 28 | + contents: read |
| 29 | + |
| 30 | +jobs: |
| 31 | + test: |
| 32 | + name: Python ${{ matrix.python-version }} |
| 33 | + runs-on: ubuntu-latest |
| 34 | + strategy: |
| 35 | + fail-fast: false |
| 36 | + matrix: |
| 37 | + python-version: |
| 38 | + - "3.11" |
| 39 | + - "3.12" |
| 40 | + |
| 41 | + steps: |
| 42 | + - uses: actions/checkout@v6 |
| 43 | + - uses: actions/setup-python@v5 |
| 44 | + with: |
| 45 | + python-version: ${{ matrix.python-version }} |
| 46 | + cache: pip |
| 47 | + cache-dependency-path: tools/perf_bisection/pyproject.toml |
| 48 | + - name: Install |
| 49 | + run: python -m pip install --editable "./tools/perf_bisection[test]" |
| 50 | + - name: Lint |
| 51 | + run: | |
| 52 | + ruff check tools/perf_bisection tools/perf_smoke_test |
| 53 | + ruff format --check tools/perf_bisection tools/perf_smoke_test |
| 54 | + - name: Test |
| 55 | + run: pytest -q tools/perf_bisection/tests |
| 56 | + - name: Verify CLI installation |
| 57 | + run: isaaclab-bisect --help |
| 58 | + - name: Build wheel |
| 59 | + if: matrix.python-version == '3.12' |
| 60 | + run: python -m pip wheel ./tools/perf_bisection --no-deps --wheel-dir dist |
| 61 | + - name: Verify clean wheel installation |
| 62 | + if: matrix.python-version == '3.12' |
| 63 | + run: | |
| 64 | + python -m venv /tmp/isaaclab-bisection-agent |
| 65 | + /tmp/isaaclab-bisection-agent/bin/python -m pip install --no-deps dist/*.whl |
| 66 | + /tmp/isaaclab-bisection-agent/bin/isaaclab-bisect --help |
| 67 | + /tmp/isaaclab-bisection-agent/bin/isaaclab-bisect-skill --help |
| 68 | +
|
| 69 | + container: |
| 70 | + name: Container build |
| 71 | + runs-on: ubuntu-latest |
| 72 | + |
| 73 | + steps: |
| 74 | + - uses: actions/checkout@v6 |
| 75 | + - name: Build reconstruction image |
| 76 | + run: | |
| 77 | + docker build \ |
| 78 | + --file tools/perf_bisection/docker/Dockerfile \ |
| 79 | + --tag isaaclab-bisection-agent:test \ |
| 80 | + tools/perf_bisection |
0 commit comments