Skip to content

Commit ad7cc54

Browse files
snnntianleiwu
authored andcommitted
Skip running onnx tests in python mac os pipeline (#5416)
1 parent a6f0923 commit ad7cc54

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/ci_build/build.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,8 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs):
12561256

12571257
if not args.skip_onnx_tests:
12581258
run_subprocess([os.path.join(cwd, 'onnx_test_runner'), 'test_models'], cwd=cwd)
1259-
if config != 'Debug':
1260-
run_subprocess([sys.executable, 'onnx_backend_test_series.py'], cwd=cwd, dll_path=dll_path)
1259+
if config != 'Debug':
1260+
run_subprocess([sys.executable, 'onnx_backend_test_series.py'], cwd=cwd, dll_path=dll_path)
12611261

12621262
if not args.skip_keras_test:
12631263
try:

tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ stages:
586586
sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt'
587587
sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer
588588
brew install libomp
589-
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --config Release --build_wheel ${{ parameters.build_py_parameters }}
589+
python3 $(Build.SourcesDirectory)/tools/ci_build/build.py --use_openmp --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --parallel --config Release --skip_onnx_tests --build_wheel ${{ parameters.build_py_parameters }}
590590
displayName: 'Command Line Script'
591591
592592
- task: CopyFiles@2

0 commit comments

Comments
 (0)