From 222ff7fb0a53919f2baa2a5c1e19aa11633709d1 Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Tue, 22 Apr 2025 18:20:38 -0700 Subject: [PATCH] Add test_qnn_delegates.py to oss ci (#10377) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/10377 Differential Revision: D73478247 --- .github/workflows/pull.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index ddfd6f1b3ed..a8fdc44fec0 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -604,8 +604,17 @@ jobs: CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") conda activate "${CONDA_ENV}" - # placeholder for running test_qnn_delegate.py, can use matrix such that we can trigger different jobs, refers to test-llama-runner-qnn-linux - # reminder: make sure each job runs fast + # The generic Linux job chooses to use base env, not the one setup by the image + CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") + conda activate "${CONDA_ENV}" + + BUILD_TOOL="cmake" + + PYTHON_EXECUTABLE=python bash .ci/scripts/setup-qnn-deps.sh + PYTHON_EXECUTABLE=python bash .ci/scripts/build-qnn-sdk.sh + + # Run all the QNN tests + PYTHON_EXECUTABLE=python bash backends/qualcomm/tests/test_qnn_delegate.py -compile_only -m SM8650 -b build-x86/ -a /home/chenlai/local --enable_x86_64 test-phi-3-mini-runner-linux: name: test-phi-3-mini-runner-linux