Increase timeout for hub tests (#20764)

This commit is contained in:
Maxim Vafin 2023-10-30 15:27:00 +01:00 committed by GitHub
parent 061d6b5b62
commit bc9b52ef7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1203,7 +1203,7 @@ jobs:
run: run:
shell: bash shell: bash
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}} runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}}
timeout-minutes: ${{ github.event_name == 'schedule' && 300 || 5 }} timeout-minutes: ${{ github.event_name == 'schedule' && 400 || 5 }}
# TODO: Switch back to self-hosted runners # TODO: Switch back to self-hosted runners
# container: # container:
# image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04 # image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
@ -1280,7 +1280,7 @@ jobs:
PyTorch_Models_Tests: PyTorch_Models_Tests:
name: PyTorch Models tests name: PyTorch Models tests
needs: Build needs: Build
timeout-minutes: ${{ github.event_name == 'schedule' && 300 || 30 }} timeout-minutes: ${{ github.event_name == 'schedule' && 400 || 30 }}
defaults: defaults:
run: run:
shell: bash shell: bash

View File

@ -53,7 +53,7 @@ class TestTransformersModel(TestConvertModel):
from PIL import Image from PIL import Image
import requests import requests
self.infer_timeout = 1200 self.infer_timeout = 800
url = "http://images.cocodataset.org/val2017/000000039769.jpg" url = "http://images.cocodataset.org/val2017/000000039769.jpg"
self.image = Image.open(requests.get(url, stream=True).raw) self.image = Image.open(requests.get(url, stream=True).raw)