File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -716,3 +716,29 @@ jobs:
716716      build-mode : Release 
717717      build-tool : cmake 
718718      docker-image : executorch-ubuntu-22.04-clang12 
719+ 
720+   unittest-nxp-neutron :
721+     uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main 
722+     permissions :
723+       id-token : write 
724+       contents : read 
725+     with :
726+       runner : linux.2xlarge 
727+       docker-image : executorch-ubuntu-22.04-clang12 
728+       submodules : ' true' 
729+       ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} 
730+       timeout : 90 
731+       script : | 
732+         set -eux 
733+          
734+         # The generic Linux job chooses to use base env, not the one setup by the image 
735+         CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") 
736+         conda activate "${CONDA_ENV}" 
737+          
738+         # Build and install Executorch 
739+         PYTHON_EXECUTABLE=python \ 
740+         CMAKE_ARGS="-DEXECUTORCH_BUILD_NXP_NEUTRON=ON" \ 
741+         .ci/scripts/setup-linux.sh --build-tool "cmake" 
742+          
743+         # Run pytest 
744+         PYTHON_EXECUTABLE=python bash backends/nxp/run_unittests.sh 
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/
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments