diff options
| author | Yong He <yonghe@outlook.com> | 2025-07-02 01:44:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 08:44:29 +0000 |
| commit | 0aa67332a8741ca4b14c20e571f281d0a5ccfa42 (patch) | |
| tree | 8f04db8f0e5716b19848ba420418a6f966395608 /.github/workflows/ci.yml | |
| parent | 35f00363d03afad74874b330f623bcd4caf115be (diff) | |
Don't run full gpu tests on merge queue. (#7587)
* Don't run full gpu tests on merge queue.
* Fix yml.
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75824e3db..18e5fa7bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: branches: [master] concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name != 'push' }} jobs: build: strategy: @@ -70,8 +70,10 @@ jobs: compiler: cl platform: x86_64 test-category: full - full-gpu-tests: true - runs-on: [Windows, self-hosted, GCP-T4] + # Run full gpu tests on PR/Main branch, but not on merge_group. + full-gpu-tests: ${{ github.event_name != 'merge_group' }} + # Run on self-hosted machine when using full-gpu-tests, otherwise on github runners. + runs-on: ["Windows", "self-hosted", "GCP-T4"] has-gpu: true server-count: 8 # Self-hosted full gpu build - debug @@ -80,8 +82,8 @@ jobs: compiler: cl platform: x86_64 test-category: full - full-gpu-tests: true - runs-on: [Windows, self-hosted, GCP-T4] + full-gpu-tests: ${{ github.event_name != 'merge_group' }} + runs-on: ["Windows", "self-hosted", "GCP-T4"] has-gpu: true server-count: 8 fail-fast: false |
