Skip to content

Commit

Permalink
[GHA] trigger for scheduled jobs (#3169)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
AlexanderDokuchaev authored Jan 7, 2025
1 parent d90d285 commit bb03859
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/api_changes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
ref: "refs/pull/${{ github.event.number }}/merge"
compare-api-doc-with-develop:
timeout-minutes: 30
needs: call-build-api-doc
runs-on: ubuntu-20.04
permissions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_html_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
type: string
jobs:
build-html:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Test examples
permissions: read-all

on:
schedule:
- cron: '0 0 * * *'
workflow_call:
workflow_dispatch:
inputs:
pull_request_number:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Test install
permissions: read-all

on:
workflow_call:
workflow_dispatch:
inputs:
pull_request_number:
description: 'The pull request number'
default: ''
schedule:
- cron: '0 0 * * *'

jobs:
install-cpu:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: MacOS
permissions: read-all

on:
workflow_call:
workflow_dispatch:
inputs:
pull_request_number:
description: 'The pull request number'
default: ''
schedule:
- cron: '0 0 * * 0'

jobs:
precommit-common:
runs-on: macos-14
timeout-minutes: 40
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand All @@ -38,6 +38,7 @@ jobs:

precommit-openvino:
runs-on: macos-14
timeout-minutes: 40
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,25 @@ on:
- cron: '0 0 * * *'

jobs:
install:
if: github.repository_owner == 'openvinotoolkit'
uses: ./.github/workflows/install.yml

examples:
if: github.repository_owner == 'openvinotoolkit'
uses: ./.github/workflows/examples.yml

md-dead-link-check:
runs-on: ubuntu-22.04
if: github.repository_owner == 'openvinotoolkit'
timeout-minutes: 10
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: AlexanderDokuchaev/md-dead-link-check@cc3ed55268899a1a6d5fd7068abbc4591eab1f74 # v0.9

tensorflow:
runs-on: ubuntu-20.04-8-cores
if: github.repository_owner == 'openvinotoolkit'
timeout-minutes: 60
defaults:
run:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
precommit:
if: github.repository_owner == 'openvinotoolkit'
strategy:
fail-fast: false
matrix:
Expand All @@ -16,3 +17,7 @@ jobs:
with:
python_version: ${{ matrix.python_version }}
gpu_enabled: false

macos:
if: github.repository_owner == 'openvinotoolkit'
uses: ./.github/workflows/macos.yml

0 comments on commit bb03859

Please sign in to comment.