Skip to content

Commit bb03859

Browse files
[GHA] trigger for scheduled jobs (#3169)
### Changes - Call scheduled jobs from nightly and weekly actions - Set timeout for some jobs - Disable scheduled jobs for forks ### Related tickets 155528 ### Tests nightly - https://github.com/openvinotoolkit/nncf/actions/runs/12522007368 weekly - https://github.com/openvinotoolkit/nncf/actions/runs/12522007372
1 parent d90d285 commit bb03859

7 files changed

+23
-6
lines changed

.github/workflows/api_changes_check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
ref: "refs/pull/${{ github.event.number }}/merge"
2121
compare-api-doc-with-develop:
22+
timeout-minutes: 30
2223
needs: call-build-api-doc
2324
runs-on: ubuntu-20.04
2425
permissions:

.github/workflows/build_html_doc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
type: string
1010
jobs:
1111
build-html:
12+
timeout-minutes: 10
1213
runs-on: ubuntu-20.04
1314
steps:
1415
- name: Checkout

.github/workflows/examples.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Test examples
22
permissions: read-all
33

44
on:
5-
schedule:
6-
- cron: '0 0 * * *'
5+
workflow_call:
76
workflow_dispatch:
87
inputs:
98
pull_request_number:

.github/workflows/install.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ name: Test install
22
permissions: read-all
33

44
on:
5+
workflow_call:
56
workflow_dispatch:
67
inputs:
78
pull_request_number:
89
description: 'The pull request number'
910
default: ''
10-
schedule:
11-
- cron: '0 0 * * *'
1211

1312
jobs:
1413
install-cpu:

.github/workflows/macos.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: MacOS
22
permissions: read-all
33

44
on:
5+
workflow_call:
56
workflow_dispatch:
67
inputs:
78
pull_request_number:
89
description: 'The pull request number'
910
default: ''
10-
schedule:
11-
- cron: '0 0 * * 0'
1211

1312
jobs:
1413
precommit-common:
1514
runs-on: macos-14
15+
timeout-minutes: 40
1616
steps:
1717
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1818
with:
@@ -38,6 +38,7 @@ jobs:
3838

3939
precommit-openvino:
4040
runs-on: macos-14
41+
timeout-minutes: 40
4142
steps:
4243
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4344
with:

.github/workflows/nightly.yml

+11
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,25 @@ on:
77
- cron: '0 0 * * *'
88

99
jobs:
10+
install:
11+
if: github.repository_owner == 'openvinotoolkit'
12+
uses: ./.github/workflows/install.yml
13+
14+
examples:
15+
if: github.repository_owner == 'openvinotoolkit'
16+
uses: ./.github/workflows/examples.yml
17+
1018
md-dead-link-check:
1119
runs-on: ubuntu-22.04
20+
if: github.repository_owner == 'openvinotoolkit'
21+
timeout-minutes: 10
1222
steps:
1323
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
1424
- uses: AlexanderDokuchaev/md-dead-link-check@cc3ed55268899a1a6d5fd7068abbc4591eab1f74 # v0.9
1525

1626
tensorflow:
1727
runs-on: ubuntu-20.04-8-cores
28+
if: github.repository_owner == 'openvinotoolkit'
1829
timeout-minutes: 60
1930
defaults:
2031
run:

.github/workflows/weekly.yml

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
precommit:
11+
if: github.repository_owner == 'openvinotoolkit'
1112
strategy:
1213
fail-fast: false
1314
matrix:
@@ -16,3 +17,7 @@ jobs:
1617
with:
1718
python_version: ${{ matrix.python_version }}
1819
gpu_enabled: false
20+
21+
macos:
22+
if: github.repository_owner == 'openvinotoolkit'
23+
uses: ./.github/workflows/macos.yml

0 commit comments

Comments
 (0)