Move MacOS inductor tests to M2-15 runner (#150228)

To get more representative results (and be able to run more tests eventually)
Also get pull_request for workflow dispatch if yml file is modified
Pull Request resolved: https://github.com/pytorch/pytorch/pull/150228
Approved by: https://github.com/clee2000
This commit is contained in:
Nikita Shulga
2025-03-29 01:36:07 +00:00
committed by PyTorch MergeBot
parent 65139eb050
commit edb6f1b7a8

View File

@ -21,9 +21,12 @@ on:
required: false
type: string
default: torchbench_perf_mps
pull_request:
paths:
- .github/workflows/inductor-perf-test-nightly-macos.yml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
cancel-in-progress: true
permissions: read-all
@ -42,7 +45,7 @@ jobs:
python-version: 3.9.12
test-matrix: |
{ include: [
{ config: "perf_smoketest", shard: 1, num_shards: 1, runner: "macos-m1-14" },
{ config: "perf_smoketest", shard: 1, num_shards: 1, runner: "macos-m2-15" },
]}
secrets: inherit