Skip to content

Commit 52e38d1

Browse files
authored
Inductor tests: use runner version for non-igc runners (#4969)
1 parent 558841e commit 52e38d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/inductor-tests-reusable.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: Runner label, keep empty for default
1616
type: string
1717
default: ""
18+
runner_version:
19+
description: Runner label for version
20+
type: string
21+
default: runner-0.0.22
1822
python_version:
1923
description: Python version
2024
type: string
@@ -33,7 +37,7 @@ env:
3337
jobs:
3438
build:
3539
name: Test
36-
runs-on: ${{ startsWith(inputs.runner_label, 'igc') && fromJSON(format('["linux","{0}"]', inputs.runner_label)) || fromJSON(format('["linux","rolling","{0}"]', inputs.runner_label || 'max1100')) }}
40+
runs-on: ${{ startsWith(inputs.runner_label, 'igc') && fromJSON(format('["linux","{0}"]', inputs.runner_label)) || fromJSON(format('["linux","rolling","{0}","{1}"]', inputs.runner_label || 'max1100', inputs.runner_version)) }}
3741
timeout-minutes: 960
3842
defaults:
3943
run:

.github/workflows/inductor-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ on:
3535
paths:
3636
- .github/pins/pytorch.txt
3737
- .github/workflows/inductor-tests.yml
38+
- .github/workflows/inductor-tests-reusable.yml
3839

3940
permissions: read-all
4041

0 commit comments

Comments
 (0)