From 9cd33e07b44d8fa0b1cb1664eaf687fc16705a91 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Fri, 25 Aug 2023 15:56:59 +0800 Subject: [PATCH] Readd Tests in Window GPU Reduced Ops workflow (#17294) ### Description Add single test step in Window GPU Reduced Ops workflow ### Motivation and Context The old workflow's building and testing were running in one command. In PR #17263, the test step was removed by mistake. So, readd it. How to consolidate the test step is in consideration. --- .../win-gpu-reduce-op-ci-pipeline.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml index 70cc7e331d9a8..b5db8a5201405 100644 --- a/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-gpu-reduce-op-ci-pipeline.yml @@ -38,6 +38,18 @@ jobs: Platform: 'x64' BuildConfig: $(BuildConfig) + - task: PythonScript@0 + displayName: 'Build wheel' + inputs: + scriptPath: '$(Build.SourcesDirectory)\setup.py' + arguments: 'bdist_wheel' + workingDirectory: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)' + + - powershell: | + python $(Build.SourcesDirectory)\tools\ci_build\build.py --config $(BuildConfig) --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --build_shared_lib --test --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_onnx_tests --use_cuda --cuda_home="$(Agent.TempDirectory)\v11.8" --cmake_extra_defines "CMAKE_CUDA_ARCHITECTURES=75" --include_ops_by_config="$(Build.SourcesDirectory)\onnxruntime\test\testdata\required_ops.config" + workingDirectory: '$(Build.BinariesDirectory)\$(BuildConfig)\$(BuildConfig)' + displayName: 'Run tests' + - template: templates/component-governance-component-detection-steps.yml parameters : condition : 'succeeded'