mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Add pip install --retries 3
to CI to resolve transients (#13001)
* Add `pip install --retries 3` to CI to resolve transients Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update ci-testing.yml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
2f6b91ee8c
commit
331c39e3c3
8
.github/workflows/ci-testing.yml
vendored
8
.github/workflows/ci-testing.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
pip install -r requirements.txt coremltools openvino-dev "tensorflow-cpu<2.15.1" --extra-index-url https://download.pytorch.org/whl/cpu
|
pip install --retries 3 -r requirements.txt coremltools openvino-dev "tensorflow-cpu<2.15.1" --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
yolo checks
|
yolo checks
|
||||||
pip list
|
pip list
|
||||||
- name: Benchmark DetectionModel
|
- name: Benchmark DetectionModel
|
||||||
@ -68,11 +68,11 @@ jobs:
|
|||||||
- name: Install requirements
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
|
torch=""
|
||||||
if [ "${{ matrix.torch }}" == "1.8.0" ]; then
|
if [ "${{ matrix.torch }}" == "1.8.0" ]; then
|
||||||
pip install -r requirements.txt torch==1.8.0 torchvision==0.9.0 --extra-index-url https://download.pytorch.org/whl/cpu
|
torch="torch==1.8.0 torchvision==0.9.0"
|
||||||
else
|
|
||||||
pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
|
||||||
fi
|
fi
|
||||||
|
pip install --retries 3 -r requirements.txt $torch --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
shell: bash # for Windows compatibility
|
shell: bash # for Windows compatibility
|
||||||
- name: Check environment
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user