main
yml 56 lines 2.09 KB
Raw
1 name: Run CI from PR comment
2
3 on:
4 issue_comment:
5 types: [created]
6
7 concurrency:
8 group: run-ci-comment-${{ github.event.issue.number }}
9 cancel-in-progress: false
10
11 permissions:
12 contents: read
13 issues: write
14 pull-requests: write
15
16 jobs:
17 run-ci-command:
18 if: >-
19 github.repository_owner == 'vllm-project' &&
20 github.event.issue.pull_request &&
21 (github.event.comment.body == '/ci run' ||
22 github.event.comment.body == '/ci run all' ||
23 github.event.comment.body == '/ci run nightly' ||
24 github.event.comment.body == '/ci run --allow-stale' ||
25 github.event.comment.body == '/ci run all --allow-stale' ||
26 github.event.comment.body == '/ci run nightly --allow-stale' ||
27 github.event.comment.body == '/ci retry' ||
28 github.event.comment.body == '/ci cancel' ||
29 github.event.comment.body == '/amd-ci run' ||
30 github.event.comment.body == '/amd-ci run all' ||
31 github.event.comment.body == '/amd-ci run nightly' ||
32 github.event.comment.body == '/amd-ci run --allow-stale' ||
33 github.event.comment.body == '/amd-ci run all --allow-stale' ||
34 github.event.comment.body == '/amd-ci run nightly --allow-stale' ||
35 github.event.comment.body == '/amd-ci retry' ||
36 github.event.comment.body == '/amd-ci cancel')
37 runs-on: [self-hosted, linux, x64, vllm-runners]
38 steps:
39 - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
40 with:
41 ref: ${{ github.event.repository.default_branch }}
42 persist-credentials: false
43 - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
44 with:
45 python-version: "3.12"
46 - name: Authorize and run CI command
47 run: >-
48 uv run --no-project --python 3.12
49 .github/workflows/scripts/run_ci_command.py
50 env:
51 BUILDKITE_API_TOKEN: ${{ secrets.BUILDKITE_API_TOKEN }}
52 BUILDKITE_AMD_PIPELINE: amd-ci
53 BUILDKITE_ORGANIZATION: vllm
54 BUILDKITE_PIPELINE: ci
55 CI_TRUSTED_USERS: ${{ vars.CI_TRUSTED_USERS }}
56 GH_TOKEN: ${{ github.token }}