File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1066,3 +1066,33 @@ jobs:
10661066
10671067 .ci/scripts/test_model.ps1 -modelName ${{ matrix.model }} -backend ${{ matrix.backend }}
10681068 }"
1069+
1070+ test-mcu-cortex-m-backend :
1071+ name : test-mcu-cortex-m-backend
1072+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
1073+ permissions :
1074+ id-token : write
1075+ contents : read
1076+ with :
1077+ runner : linux.2xlarge.memory
1078+ docker-image : ci-image:executorch-ubuntu-22.04-arm-sdk
1079+ submodules : ' recursive'
1080+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
1081+ timeout : 120
1082+ script : |
1083+ # The generic Linux job chooses to use base env, not the one setup by the image
1084+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
1085+ conda activate "${CONDA_ENV}"
1086+
1087+ source .ci/scripts/utils.sh
1088+ install_executorch "--use-pt-pinned-commit"
1089+
1090+ # Install arm dependencies
1091+ .ci/scripts/setup-arm-baremetal-tools.sh
1092+ source examples/arm/ethos-u-scratch/setup_path.sh
1093+
1094+ # To build cortex-m test runner
1095+ backends/cortex_m/test/build_test_runner.sh
1096+
1097+ # To run cortex_m tests
1098+ pytest --config-file=backends/arm/test/pytest.ini backends/cortex_m/test
You can’t perform that action at this time.
0 commit comments