File tree Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Original file line number Diff line number Diff line change @@ -686,3 +686,32 @@ jobs:
686
686
build-mode : Release
687
687
build-tool : cmake
688
688
docker-image : executorch-ubuntu-22.04-clang12
689
+
690
+ unittest-nxp-neutron :
691
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
692
+ permissions :
693
+ id-token : write
694
+ contents : read
695
+ with :
696
+ runner : linux.2xlarge
697
+ docker-image : executorch-ubuntu-22.04-clang12
698
+ submodules : ' recursive'
699
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
700
+ timeout : 90
701
+ script : |
702
+ set -eux
703
+
704
+ # The generic Linux job chooses to use base env, not the one setup by the image
705
+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
706
+ conda activate "${CONDA_ENV}"
707
+
708
+ # Build and install Executorch
709
+ PYTHON_EXECUTABLE=python \
710
+ CMAKE_ARGS="-DEXECUTORCH_BUILD_NXP_NEUTRON=ON" \
711
+ .ci/scripts/setup-linux.sh --build-tool "cmake"
712
+
713
+ # Install test requirements
714
+ pip install -r backends/nxp/requirements-tests.txt
715
+
716
+ # Run pytest
717
+ PYTHON_EXECUTABLE=python bash backends/nxp/run_unittests.sh
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ tensorflow==2.18.0
3
3
pytest-mock
4
4
tflite
5
5
GvGen
6
- neutron-converter_SDK_25_03
6
+ neutron_converter_SDK_25_03
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright 2025 NXP
3
+ #
4
+ # This source code is licensed under the BSD-style license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+ set -eux
7
+
8
+ SCRIPT_DIR=$( dirname $( readlink -fm $0 ) )
9
+ EXECUTORCH_DIR=$( dirname $( dirname $SCRIPT_DIR ) )
10
+
11
+ cd $EXECUTORCH_DIR
12
+
13
+ # '-c /dev/null' is used to ignore root level pytest.ini.
14
+ PYTHONPATH=` cd ..; pwd` pytest -c /dev/null backends/nxp/tests/
Original file line number Diff line number Diff line change 7
7
set -u
8
8
9
9
# Install neutron-converter
10
- pip install --extra-index-url https://eiq.nxp.com/repository neutron-converter_SDK_25_03
10
+ pip install --extra-index-url https://eiq.nxp.com/repository neutron_converter_SDK_25_03
You can’t perform that action at this time.
0 commit comments