From 5b6b1d5930ddeb06ecb52504a5a266fe16f6ae08 Mon Sep 17 00:00:00 2001 From: PingqiLi Date: Fri, 19 Jul 2024 17:47:55 +0800 Subject: [PATCH] update mindspore dependency version in the requirements for main branch --- .github/workflows/ut_test.yaml | 8 ++++++++ requirements-dev.txt | 2 +- requirements.txt | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ut_test.yaml b/.github/workflows/ut_test.yaml index 061534e..9ccb286 100644 --- a/.github/workflows/ut_test.yaml +++ b/.github/workflows/ut_test.yaml @@ -28,6 +28,14 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + PYTHON_VERSION=$(python --version) + if [[ "$PYTHON_VERSION" == *"3.8"* ]]; then + pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.3.0/MindSpore/unified/x86_64/mindspore-2.3.0-cp38-cp38-linux_x86_64.whl \ + --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple + elif [[ "$PYTHON_VERSION" == *"3.9"* ]]; then + pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/2.3.0/MindSpore/unified/x86_64/mindspore-2.3.0-cp39-cp39-linux_x86_64.whl \ + --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i https://pypi.tuna.tsinghua.edu.cn/simple + fi pip install -r requirements-dev.txt - name: Lint with pre-commit uses: pre-commit/action@v3.0.0 diff --git a/requirements-dev.txt b/requirements-dev.txt index 6eb672e..11a60c0 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -mindspore==2.0.0 +mindspore==2.3.0 numpy>=1.17.0, <2 scipy>=1.6.0 pyyaml>=5.3 diff --git a/requirements.txt b/requirements.txt index 121944f..086a15b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -mindspore==2.0.0 +mindspore==2.3.0 numpy>=1.17.0, <2 scipy>=1.6.0 pyyaml>=5.3