Skip to content

Commit 095265d

Browse files
committed
up
1 parent 7b753f1 commit 095265d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/_unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
macos:
4444
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
4545
with:
46-
runner: macos-15-xlarge
47-
python-version: '3.10'
46+
runner: macos-m1-stable
47+
python-version: '3.11'
4848
submodules: 'recursive'
4949
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
5050
script: |

backends/apple/coreml/test/test_torch_ops.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Please refer to the license found in the LICENSE file in the root directory of the source tree.
44

55
import sys
6+
import platform
67
import unittest
78

89
import coremltools as ct
@@ -16,8 +17,10 @@
1617
from executorch.runtime import Runtime
1718
from torchao.quantization import IntxWeightOnlyConfig, PerAxis, PerGroup, quantize_
1819

19-
_TEST_RUNTIME = sys.platform == "darwin"
20-
20+
_TEST_RUNTIME = (
21+
sys.platform == "darwin"
22+
and tuple(map(int, platform.mac_ver()[0].split("."))) >= (15, 0)
23+
)
2124

2225
class TestTorchOps(unittest.TestCase):
2326
edge_compile_config = executorch.exir.EdgeCompileConfig()

0 commit comments

Comments
 (0)