-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change ci pip install command to ms23, skip rexnet testcases t…
…o avoid bug under CPU environment
- Loading branch information
ChongWei905
committed
Jul 23, 2024
1 parent
853084f
commit 19cbda2
Showing
3 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.7", "3.8", "3.9"] | ||
include: | ||
- os: macos-latest | ||
python-version: "3.8" | ||
python-version: ['3.8', '3.9'] | ||
# include: | ||
# - os: macos-latest | ||
# python-version: "3.8" | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
@@ -35,9 +35,18 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install -r requirements/dev.txt | ||
pip install "Pillow==9.1.1" | ||
- name: Install Mindspore If Python38 & Linux X86 | ||
if: ${{ matrix.python-version == '3.8' }} | ||
run: | ||
# MindSpore must be installed following the instruction from official web, but not from pypi. | ||
# That's why we exclude mindspore from requirements.txt. Does this work? | ||
pip install "mindspore>=1.8" | ||
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 | ||
- name: Install Mindspore If Python39 & Linux X86 | ||
if: ${{ matrix.python-version == '3.9' }} | ||
run: | ||
# MindSpore must be installed following the instruction from official web, but not from pypi. | ||
# That's why we exclude mindspore from requirements.txt. Does this work? | ||
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 | ||
- name: Lint with pre-commit | ||
uses: pre-commit/[email protected] | ||
- name: Test with pytest (UT) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters