Skip to content

Commit 747fc6f

Browse files
psiddhGithub Executorch
andauthored
Add CortexM Tests to CI (#15690)
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: ### Summary [PLEASE REMOVE] See [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests) for ExecuTorch PR guidelines. [PLEASE REMOVE] If this PR closes an issue, please add a `Fixes #<issue-id>` line. [PLEASE REMOVE] If this PR introduces a fix or feature that should be the upcoming release notes, please add a "Release notes: <area>" label. For a list of available release notes labels, check out [CONTRIBUTING.md's Pull Requests](https://github.com/pytorch/executorch/blob/main/CONTRIBUTING.md#pull-requests). ### Test plan [PLEASE REMOVE] How did you test this PR? Please write down any manual commands you used and note down tests that you have written if applicable. Co-authored-by: Github Executorch <github_executorch@arm.com>
1 parent c6308a9 commit 747fc6f

File tree

2 files changed

+30
-369
lines changed

2 files changed

+30
-369
lines changed

.github/workflows/trunk.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)