Add optional support for ovrtx-0.5 #9487
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
| # Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). | |
| # All rights reserved. | |
| # | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| name: Changelog Fragment Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| inputs: | |
| base_ref: | |
| description: 'Base branch to diff against' | |
| required: true | |
| default: 'develop' | |
| concurrency: | |
| group: changelog-check-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-fragments: | |
| name: Check changelog fragments | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| # Full history needed to diff against the base branch | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.12" | |
| # No `cache: pip` here: the pytest install below is conditional on the | |
| # PR touching tools/changelog/, so on most runs pip never executes and | |
| # ~/.cache/pip is never created. setup-python's post-job save treats a | |
| # missing cache dir as an error and fails the job. | |
| - name: Resolve base ref | |
| id: base | |
| run: echo "ref=${{ github.event.inputs.base_ref || github.base_ref }}" >> "$GITHUB_OUTPUT" | |
| - name: Fetch base branch | |
| run: git fetch origin ${{ steps.base.outputs.ref }} | |
| - name: Verify changelog fragments | |
| run: python3 tools/changelog/cli.py check ${{ steps.base.outputs.ref }} | |
| - name: Run changelog tool unit tests | |
| # Gates tools/changelog/cli.py itself: regression tests for the | |
| # filename rules, fragment parsing, CHANGELOG_HEADER_RE invariant, | |
| # and cmd_check / cmd_compile orchestration. Without this, a cli.py | |
| # refactor could silently break the gate above. | |
| # | |
| # Skipped when the PR doesn't touch tools/changelog/ — fragment-only | |
| # PRs are already covered by the content gate above, so paying for a | |
| # pytest install + run on every PR is wasted. | |
| run: | | |
| if ! git diff --name-only origin/${{ steps.base.outputs.ref }}...HEAD | grep -qE '^tools/changelog/'; then | |
| echo "PR does not touch tools/changelog/ — skipping unit tests." | |
| exit 0 | |
| fi | |
| bash "$GITHUB_WORKSPACE/.github/actions/_lib/with-python-package-retries.sh" pip install pytest | |
| python3 -m pytest tools/changelog/test/ -q |