From 0cba56e0a010fe8c87a7be91bb84d36508edbf6d Mon Sep 17 00:00:00 2001 From: PeixuanZuo <94887879+PeixuanZuo@users.noreply.github.com> Date: Sun, 4 Feb 2024 16:37:36 +0800 Subject: [PATCH] [ROCm] Fix CI pipeline by fixing pytest version (#19407) Fix pytest version to 7.4.4, higher version will cause error `from onnxruntime.capi import onnxruntime_validation ModuleNotFoundError: No module named 'onnxruntime.capi'` --- tools/ci_build/github/pai/rocm-ci-pipeline-env.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci_build/github/pai/rocm-ci-pipeline-env.Dockerfile b/tools/ci_build/github/pai/rocm-ci-pipeline-env.Dockerfile index 4db9df80ed..4767c74afd 100644 --- a/tools/ci_build/github/pai/rocm-ci-pipeline-env.Dockerfile +++ b/tools/ci_build/github/pai/rocm-ci-pipeline-env.Dockerfile @@ -125,7 +125,8 @@ RUN pip install \ pytorch_lightning==1.6.0 \ pytest-xdist \ pytest-rerunfailures \ - ml_dtypes==0.3.0 + ml_dtypes==0.3.0 \ + pytest==7.4.4 # Install migraphx RUN apt update && apt install -y migraphx