diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 318e5d14c84f5..a2629ff630814 100755 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1256,8 +1256,8 @@ def run_onnxruntime_tests(args, source_dir, ctest_path, build_dir, configs): if not args.skip_onnx_tests: run_subprocess([os.path.join(cwd, 'onnx_test_runner'), 'test_models'], cwd=cwd) - if config != 'Debug': - run_subprocess([sys.executable, 'onnx_backend_test_series.py'], cwd=cwd, dll_path=dll_path) + if config != 'Debug': + run_subprocess([sys.executable, 'onnx_backend_test_series.py'], cwd=cwd, dll_path=dll_path) if not args.skip_keras_test: try: diff --git a/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml index 14ba068b344e8..4dfd0c6937e87 100644 --- a/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/py-packaging-stage.yml @@ -586,7 +586,7 @@ stages: sudo python3 -m pip install -r '$(Build.SourcesDirectory)/tools/ci_build/github/linux/docker/scripts/requirements.txt' sudo xcode-select --switch /Applications/Xcode_10.app/Contents/Developer brew install libomp - 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 }} + 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 }} displayName: 'Command Line Script' - task: CopyFiles@2