[GHA] Prepare new required stages for precommit (#21766)
* Add Smart CI support to webassembly workflow * Add ONNX_Models to required checks list
This commit is contained in:
parent
7b1074b275
commit
224eb79ab6
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -586,7 +586,7 @@ jobs:
|
|||||||
Overall_Status:
|
Overall_Status:
|
||||||
name: ci/gha_overall_status
|
name: ci/gha_overall_status
|
||||||
needs: [Smart_CI, Build, Debian_Packages, Samples, Conformance, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests,
|
needs: [Smart_CI, Build, Debian_Packages, Samples, Conformance, ONNX_Runtime, CXX_Unit_Tests, Python_Unit_Tests,
|
||||||
CPU_Functional_Tests, TensorFlow_Hub_Models_Tests, PyTorch_Models_Tests, NVIDIA_Plugin]
|
CPU_Functional_Tests, TensorFlow_Hub_Models_Tests, PyTorch_Models_Tests, NVIDIA_Plugin, ONNX_Models]
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
53
.github/workflows/webassembly.yml
vendored
53
.github/workflows/webassembly.yml
vendored
@ -2,21 +2,7 @@ name: Webassembly
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
|
||||||
- '**/docs/**'
|
|
||||||
- 'docs/**'
|
|
||||||
- '**/**.md'
|
|
||||||
- '**.md'
|
|
||||||
- '**/layer_tests_summary/**'
|
|
||||||
- '**/conformance/**'
|
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
|
||||||
- '**/docs/**'
|
|
||||||
- 'docs/**'
|
|
||||||
- '**/**.md'
|
|
||||||
- '**.md'
|
|
||||||
- '**/layer_tests_summary/**'
|
|
||||||
- '**/conformance/**'
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- 'releases/**'
|
- 'releases/**'
|
||||||
@ -27,7 +13,31 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Smart_CI:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
|
||||||
|
skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
|
||||||
|
steps:
|
||||||
|
- name: checkout action
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: .github/actions/smart-ci
|
||||||
|
|
||||||
|
- name: Get affected components
|
||||||
|
id: smart_ci
|
||||||
|
uses: ./.github/actions/smart-ci
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
pr: ${{ github.event.number }}
|
||||||
|
commit_sha: ${{ github.sha }}
|
||||||
|
component_pattern: "category: (.*)"
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
skip_when_only_listed_labels_set: 'docs'
|
||||||
|
skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
|
needs: Smart_CI
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -44,6 +54,7 @@ jobs:
|
|||||||
OPENVINO_REPO: /__w/openvino/openvino/openvino
|
OPENVINO_REPO: /__w/openvino/openvino/openvino
|
||||||
OPENVINO_BUILD_DIR: /__w/openvino/openvino/openvino_build
|
OPENVINO_BUILD_DIR: /__w/openvino/openvino/openvino_build
|
||||||
SCCACHE_AZURE_KEY_PREFIX: webassembly_Release
|
SCCACHE_AZURE_KEY_PREFIX: webassembly_Release
|
||||||
|
if: "!needs.smart_ci.outputs.skip_workflow"
|
||||||
steps:
|
steps:
|
||||||
- name: Install git
|
- name: Install git
|
||||||
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates
|
run: apt-get update && apt-get install --assume-yes --no-install-recommends git ca-certificates
|
||||||
@ -76,3 +87,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Show ccache stats
|
- name: Show ccache stats
|
||||||
run: ${SCCACHE_PATH} --show-stats
|
run: ${SCCACHE_PATH} --show-stats
|
||||||
|
|
||||||
|
Overall_Status:
|
||||||
|
name: ci/gha_overall_status_webassembly
|
||||||
|
needs: [Smart_CI, Build]
|
||||||
|
if: ${{ always() }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check status of all jobs
|
||||||
|
if: >-
|
||||||
|
${{
|
||||||
|
contains(needs.*.result, 'failure') ||
|
||||||
|
contains(needs.*.result, 'cancelled')
|
||||||
|
}}
|
||||||
|
run: exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user