Skip to content

Commit 8ff8e72

Browse files
committed
[Backend Tester] Run Core ML tests in nightly CI
ghstack-source-id: 179408a ghstack-comment-id: 3190288611 Pull-Request: #13446
1 parent a926d09 commit 8ff8e72

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,27 @@ jobs:
5858
EXIT_CODE=0
5959
.ci/scripts/test_backend_linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "${RUNNER_ARTIFACT_DIR}" || EXIT_CODE=$?
6060
echo "Test run complete with exit code $EXIT_CODE."
61+
62+
backend-test-macos:
63+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
flow: [coreml, coreml_static_int8]
68+
suite: [models, operators]
69+
with:
70+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
71+
runner: macos-latest-xlarge
72+
python-version: 3.12
73+
submodules: recursive
74+
timeout: 90
75+
upload-artifact: test-report-${{ matrix.flow }}-${{ matrix.suite }}
76+
script: |
77+
set -eux
78+
79+
# This is needed to get the prebuilt PyTorch wheel from S3
80+
${CONDA_RUN} --no-capture-output pip install awscli==1.37.21
81+
82+
EXIT_CODE=0
83+
.ci/scripts/test_backend_macos.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "${RUNNER_ARTIFACT_DIR}" || EXIT_CODE=$?
84+
echo "Test run complete with exit code $EXIT_CODE."

0 commit comments

Comments
 (0)