Run CI from PR comment #19583
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: Run CI from PR comment | |
| on: | |
| issue_comment: | |
| types: [created] | |
| concurrency: | |
| group: run-ci-comment-${{ github.event.issue.number }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| run-ci-command: | |
| if: >- | |
| github.repository_owner == 'vllm-project' && | |
| github.event.issue.pull_request && | |
| (github.event.comment.body == '/ci run' || | |
| github.event.comment.body == '/ci run all' || | |
| github.event.comment.body == '/ci run nightly' || | |
| github.event.comment.body == '/ci retry' || | |
| github.event.comment.body == '/ci cancel' || | |
| github.event.comment.body == '/amd-ci run' || | |
| github.event.comment.body == '/amd-ci run all' || | |
| github.event.comment.body == '/amd-ci run nightly' || | |
| github.event.comment.body == '/amd-ci retry' || | |
| github.event.comment.body == '/amd-ci cancel') | |
| runs-on: [self-hosted, linux, x64, vllm-runners] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: ${{ github.event.repository.default_branch }} | |
| persist-credentials: false | |
| - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Authorize and run CI command | |
| run: >- | |
| uv run --no-project --python 3.12 | |
| .github/workflows/scripts/run_ci_command.py | |
| env: | |
| BUILDKITE_API_TOKEN: ${{ secrets.BUILDKITE_API_TOKEN }} | |
| BUILDKITE_AMD_PIPELINE: amd-ci | |
| BUILDKITE_ORGANIZATION: vllm | |
| BUILDKITE_PIPELINE: ci | |
| CI_TRUSTED_USERS: ${{ vars.CI_TRUSTED_USERS }} | |
| GH_TOKEN: ${{ github.token }} |