Skip to content

Commit 333926d

Browse files
committed
Add OOTB tests for macos-m1-stable runner
* Separated out from #12392 * Make job names more specific Signed-off-by: Tom Allsop <[email protected]> Change-Id: Icdfba4bda4ed7021d6eed5698f529fee60919cdb
1 parent 36d342c commit 333926d

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/trunk.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ jobs:
400400
exit 1
401401
fi
402402
403-
test-arm-ootb-linux:
404-
name: test-arm-ootb-linux
403+
test-arm-backend-ootb-linux:
404+
name: test-arm-backend-ootb-linux
405405
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
406406
permissions:
407407
id-token: write
@@ -431,6 +431,34 @@ jobs:
431431
# Run OOTB tests
432432
backends/arm/test/test_arm_ootb.sh
433433
434+
test-arm-backend-ootb-macos:
435+
name: test-arm-backend-ootb-macos
436+
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main
437+
with:
438+
runner: macos-m1-stable
439+
python-version: '3.11'
440+
submodules: 'recursive'
441+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
442+
timeout: 90
443+
script: |
444+
set -eux
445+
bash .ci/scripts/setup-conda.sh
446+
eval "$(conda shell.bash hook)"
447+
448+
# Follow the steps required before running the notebooks
449+
# Try to mirror these as closely as possible
450+
${CONDA_RUN} source .ci/scripts/utils.sh
451+
${CONDA_RUN} install_executorch "--use-pt-pinned-commit"
452+
453+
${CONDA_RUN} sh .ci/scripts/setup-arm-baremetal-tools.sh
454+
${CONDA_RUN} source examples/arm/ethos-u-scratch/setup_path.sh
455+
456+
# Install requirements for converting notebooks
457+
${CONDA_RUN} pip install notebook
458+
459+
# Run OOTB tests
460+
${CONDA_RUN} sh backends/arm/test/test_arm_ootb.sh
461+
434462
test-coreml-delegate:
435463
name: test-coreml-delegate
436464
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main

0 commit comments

Comments
 (0)