[GHA][HF] Switch python nightly tests to github runners (#20286)
* switched runners to GHA * excluded timm models from nightly scope * added sudo steps * switched precommit too
This commit is contained in:
parent
30d176a687
commit
166d6743e7
41
.github/workflows/linux.yml
vendored
41
.github/workflows/linux.yml
vendored
@ -155,12 +155,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Pack Artifacts
|
- name: Pack Artifacts
|
||||||
run: |
|
run: |
|
||||||
|
|
||||||
# Add the ONNX Runtime version and skip tests list to the archive to use in the ONNX Runtime Job
|
# Add the ONNX Runtime version and skip tests list to the archive to use in the ONNX Runtime Job
|
||||||
# w/o the need to checkout repository
|
# w/o the need to checkout repository
|
||||||
|
|
||||||
cp -R ${ONNX_RUNTIME_UTILS} ${INSTALL_DIR}
|
cp -R ${ONNX_RUNTIME_UTILS} ${INSTALL_DIR}
|
||||||
|
|
||||||
pushd ${INSTALL_DIR}
|
pushd ${INSTALL_DIR}
|
||||||
tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
|
tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
|
||||||
popd
|
popd
|
||||||
@ -432,10 +432,10 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo -E ${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -y
|
sudo -E ${INSTALL_DIR}/install_dependencies/install_openvino_dependencies.sh -c=core -y
|
||||||
|
|
||||||
# Needed for downloading IRs from storage.openvinotoolkit with Python urllib
|
# Needed for downloading IRs from storage.openvinotoolkit with Python urllib
|
||||||
sudo apt-get update && sudo apt-get install --assume-yes --no-install-recommends ca-certificates
|
sudo apt-get update && sudo apt-get install --assume-yes --no-install-recommends ca-certificates
|
||||||
|
|
||||||
python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
|
python3 -m pip install -r ${CONFORMANCE_TOOLS_DIR}/requirements.txt
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -560,7 +560,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
source ${INSTALL_DIR}/setupvars.sh
|
source ${INSTALL_DIR}/setupvars.sh
|
||||||
skip_tests=$(tr -s '\n ' ':' < ${ONNX_RUNTIME_UTILS}/skip_tests)
|
skip_tests=$(tr -s '\n ' ':' < ${ONNX_RUNTIME_UTILS}/skip_tests)
|
||||||
|
|
||||||
./onnxruntime_test_all --gtest_filter=-$skip_tests
|
./onnxruntime_test_all --gtest_filter=-$skip_tests
|
||||||
working-directory: ${{ env.ONNX_RUNTIME_BUILD_DIR }}/RelWithDebInfo/RelWithDebInfo
|
working-directory: ${{ env.ONNX_RUNTIME_BUILD_DIR }}/RelWithDebInfo/RelWithDebInfo
|
||||||
|
|
||||||
@ -1090,19 +1090,23 @@ jobs:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
runs-on: ${{ github.event_name == 'schedule' && 'aks-linux-16-cores' || 'aks-linux-4-cores-16gb'}}
|
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}}
|
||||||
container:
|
# TODO: Switch back to self-hosted runners
|
||||||
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
# container:
|
||||||
volumes:
|
# image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
||||||
- /mount/caches:/mount/caches
|
# volumes:
|
||||||
|
# - /mount/caches:/mount/caches
|
||||||
env:
|
env:
|
||||||
INSTALL_DIR: ${{ github.workspace }}/install
|
INSTALL_DIR: ${{ github.workspace }}/install
|
||||||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||||
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
|
MODEL_HUB_TESTS_INSTALL_DIR: ${{ github.workspace }}/install/tests/model_hub_tests
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check sudo
|
||||||
|
run: if [ "$(id -u)" -eq 0 ]; then apt update && apt --assume-yes install sudo; fi
|
||||||
|
|
||||||
- name: Install 'actions/setup-python@v4' dependencies
|
- name: Install 'actions/setup-python@v4' dependencies
|
||||||
run: apt-get update && apt-get install -y libssl1.1 ca-certificates
|
run: sudo apt-get update && sudo apt-get install -y libssl1.1 ca-certificates
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
@ -1165,11 +1169,12 @@ jobs:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
runs-on: ${{ github.event_name == 'schedule' && 'aks-linux-16-cores' || 'aks-linux-8-cores'}}
|
runs-on: ${{ github.event_name == 'schedule' && 'ubuntu-20.04-16-cores' || 'ubuntu-20.04-8-cores'}}
|
||||||
container:
|
# TODO: Switch back to self-hosted runners
|
||||||
image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
# container:
|
||||||
volumes:
|
# image: openvinogithubactions.azurecr.io/dockerhub/ubuntu:20.04
|
||||||
- /mount/caches:/mount/caches
|
# volumes:
|
||||||
|
# - /mount/caches:/mount/caches
|
||||||
env:
|
env:
|
||||||
INSTALL_DIR: ${{ github.workspace }}/install
|
INSTALL_DIR: ${{ github.workspace }}/install
|
||||||
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
INSTALL_TEST_DIR: ${{ github.workspace }}/install/tests
|
||||||
|
@ -62,6 +62,5 @@ class TestTimmConvertModel(TestConvertModel):
|
|||||||
self.run(name, None, ie_device)
|
self.run(name, None, ie_device)
|
||||||
|
|
||||||
@pytest.mark.parametrize("name", get_all_models())
|
@pytest.mark.parametrize("name", get_all_models())
|
||||||
@pytest.mark.nightly
|
|
||||||
def test_convert_model_all_models(self, name, ie_device):
|
def test_convert_model_all_models(self, name, ie_device):
|
||||||
self.run(name, None, ie_device)
|
self.run(name, None, ie_device)
|
||||||
|
Loading…
Reference in New Issue
Block a user