-
Notifications
You must be signed in to change notification settings - Fork 1k
97 lines (88 loc) · 2.48 KB
/
Copy pathtreon_precommit.yml
File metadata and controls
97 lines (88 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: treon
on:
workflow_dispatch:
pull_request:
branches:
- 'main'
- 'latest'
paths:
- 'notebooks/**.ipynb'
- 'notebooks/**.py'
- 'requirements.txt'
- '.ci/*'
- '.github/workflows/*.yml'
- '.github/workflows/.env'
push:
branches:
- 'main'
- 'latest'
paths:
- 'notebooks/**.ipynb'
- 'notebooks/**.py'
- 'requirements.txt'
- '.ci/*'
- '.github/workflows/*.yml'
- '.github/workflows/.env'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
env:
OV_BRANCH: 'master'
jobs:
get_docker_tag:
runs-on: ubuntu-latest
outputs:
docker_tag: ${{ steps.get_docker_tag.outputs.docker_tag }}
steps:
- name: Clone docker tag from OpenVINO repo
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
repository: 'openvinotoolkit/openvino'
path: 'openvino'
ref: ${{ env.OV_BRANCH }}
sparse-checkout: |
.github/dockerfiles/docker_tag
- name: Save docker tag to output
id: get_docker_tag
run: |
docker_tag=$(cat openvino/.github/dockerfiles/docker_tag)
echo "docker_tag=$docker_tag" >> $GITHUB_OUTPUT
build_treon_linux:
needs: get_docker_tag
strategy:
fail-fast: false
matrix:
runs_on: [aks-linux-8-cores-32gb]
python: ['3.10', '3.11', '3.12', '3.13']
uses: ./.github/workflows/job_unix.yml
with:
runs_on: ${{ matrix.runs_on }}
python: ${{ matrix.python }}
container: 'openvinogithubactions.azurecr.io/ov_build/ubuntu_22_04_x64:${{ needs.get_docker_tag.outputs.docker_tag }}'
test_only_changed: true
build_treon_windows:
strategy:
fail-fast: false
matrix:
runs_on: [aks-win-16-cores-32gb-full]
python: ['3.10', '3.11', '3.12', '3.13']
uses: ./.github/workflows/job_windows.yml
with:
runs_on: ${{ matrix.runs_on }}
python: ${{ matrix.python }}
test_only_changed: true
Overall_Status:
name: ci/gha_overall_status_precommit
needs: [get_docker_tag, build_treon_linux, build_treon_windows]
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