Files
Liger-Kernel/.github/workflows/amd-ci.yml
T
Vaibhav JindalandCopilot 98f6371a9c ci: run only Checkstyle in the merge queue; make AMD/Intel manual-only (#1515)
## Summary

The AMD and Intel GPU runners are currently unavailable, so those CI
jobs fail whenever they run — including inside the **merge queue**,
which blocks all merges for some time. This PR makes the merge queue run
**only Checkstyle** for now.

## Change

Reduce the **AMD GPU** and **Intel GPU** workflow triggers to
`workflow_dispatch` only, mirroring the **NVIDIA GPU** workflow's `on:`
(manual trigger) **minus the schedule** — we don't maintain a schedule
for AMD/Intel.

This removes their `push`, `pull_request`, and `merge_group` triggers,
so:

- **Only Checkstyle runs in the merge queue** (it keeps its
`merge_group` trigger).
- AMD/Intel no longer run automatically on PRs or pushes.
- AMD/Intel can still be launched on demand via the Actions **"Run
workflow"** button once the runners are healthy again.

`checkstyle.yml` is unchanged.

## Notes

- Observed (not changed here): `merge-queue-failure.yml` listens for the
**NVIDIA GPU** workflow with `event == 'merge_group'`, but NVIDIA GPU
has no `merge_group` trigger, so that handler is currently a no-op. Can
be addressed separately.

Co-authored-by: Copilot <[email protected]>
2026-10-07 21:54:52 +00:00

45 lines
1.3 KiB
YAML

name: AMD GPU
# AMD runners are currently unavailable, so this suite is manual-only
# (mirrors NVIDIA GPU, but without a schedule). Removing the push / pull_request /
# merge_group triggers keeps it out of PR checks and the merge queue until the
# runners are healthy again; only Checkstyle runs in the merge queue for now.
on:
workflow_dispatch: # Enables manual trigger
concurrency:
# This causes it to cancel previous in-progress actions on the same PR / branch,
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.merge_group.head_ref || github.ref }}
cancel-in-progress: true
jobs:
tests:
runs-on: linux-mi300-gpu-1
strategy:
matrix:
rocm_version: ['7.1']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Setup Dependencies
run: |
rocm-smi
python -m pip install --upgrade pip
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/rocm${{ matrix.rocm_version }}
pip install -e ".[dev]"
- name: List Python Environments
run: python -m pip list
- name: Run Unit Tests
run: |
make test
make test-convergence