File tree Expand file tree Collapse file tree 6 files changed +111
-81
lines changed Expand file tree Collapse file tree 6 files changed +111
-81
lines changed Original file line number Diff line number Diff line change
1
+ # Allow atmost 5% coverage drop from main branch.
2
+ coverage :
3
+ status :
4
+ project :
5
+ default :
6
+ target : auto
7
+ threshold : 5%
8
+ patch : false
Original file line number Diff line number Diff line change
1
+ name : Wait for checks
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ match_pattern :
7
+ required : true
8
+ type : string
9
+ delay :
10
+ required : false
11
+ type : string
12
+ default : 10s
13
+
14
+ jobs :
15
+ wait :
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ checks : read
19
+ steps :
20
+ - name : Wait for checks (PRs only)
21
+ if : github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/pull-request/')
22
+
23
+ with :
24
+ token : ${{ secrets.GITHUB_TOKEN }}
25
+ match_pattern : ${{ inputs.match_pattern }}
26
+ delay : ${{ inputs.delay }}
27
+ - name : No-op for non-PR events
28
+ if : github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/pull-request/')
29
+ run : echo "Not a pull_request event"
Original file line number Diff line number Diff line change 14
14
15
15
# Cancel previous runs if new commit is pushed to the same PR
16
16
concurrency :
17
- group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
+ wait-dco :
22
+ uses : ./.github/workflows/_wait_for_checks.yml
23
+ permissions :
24
+ checks : read
25
+ secrets : inherit
26
+ with :
27
+ match_pattern : ' ^DCO$'
28
+ wait-unit-tests :
29
+ needs : [wait-dco]
30
+ uses : ./.github/workflows/_wait_for_checks.yml
31
+ permissions :
32
+ checks : read
33
+ secrets : inherit
34
+ with :
35
+ match_pattern : ' ^Unit tests / linux$'
36
+ delay : 60s
21
37
gpu-tests :
38
+ needs : [wait-unit-tests]
22
39
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
23
40
runs-on : linux-amd64-gpu-h100-latest-1
24
41
timeout-minutes : 60
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,7 +26,15 @@ concurrency:
26
26
cancel-in-progress : true
27
27
28
28
jobs :
29
- unit-tests :
29
+ wait-dco :
30
+ uses : ./.github/workflows/_wait_for_checks.yml
31
+ permissions :
32
+ checks : read
33
+ secrets : inherit
34
+ with :
35
+ match_pattern : ' ^DCO$'
36
+ linux :
37
+ needs : [wait-dco]
30
38
runs-on : ubuntu-latest
31
39
timeout-minutes : 30
32
40
steps :
42
50
token : ${{ secrets.CODECOV_TOKEN }}
43
51
fail_ci_if_error : true
44
52
verbose : true
45
- unit-tests- windows :
53
+ windows :
46
54
if : github.event_name == 'pull_request'
55
+ needs : [linux]
47
56
runs-on : windows-latest
48
57
timeout-minutes : 30
49
58
steps :
53
62
python-version : " 3.12"
54
63
- name : Run unit tests (without coverage)
55
64
run : pip install tox && tox -e py312-torch28-unit
65
+ multi-py :
66
+ if : github.event_name == 'pull_request'
67
+ needs : [linux]
68
+ runs-on : ubuntu-latest
69
+ timeout-minutes : 30
70
+ strategy :
71
+ matrix :
72
+ py : [10, 11]
73
+ steps :
74
+ - uses : actions/checkout@v4
75
+ - uses : actions/setup-python@v5
76
+ with :
77
+ python-version : " 3.${{ matrix.py }}"
78
+ - name : Run unit tests
79
+ run : pip install tox && tox -e py3${{ matrix.py }}-torch28-unit
80
+ multi-torch :
81
+ if : github.event_name == 'pull_request'
82
+ needs : [linux]
83
+ runs-on : ubuntu-latest
84
+ timeout-minutes : 30
85
+ strategy :
86
+ matrix :
87
+ torch : [25, 26, 27]
88
+ steps :
89
+ - uses : actions/checkout@v4
90
+ - uses : actions/setup-python@v5
91
+ with :
92
+ python-version : " 3.12"
93
+ - name : Run unit tests
94
+ run : pip install tox && tox -e py312-torch${{ matrix.torch }}-unit
95
+ partial-install :
96
+ if : github.event_name == 'pull_request'
97
+ needs : [linux]
98
+ runs-on : ubuntu-latest
99
+ timeout-minutes : 30
100
+ strategy :
101
+ matrix :
102
+ test-env : [onnx, torch]
103
+ steps :
104
+ - uses : actions/checkout@v4
105
+ - uses : actions/setup-python@v5
106
+ with :
107
+ python-version : " 3.12"
108
+ - name : Run unit tests
109
+ run : pip install tox && tox -e py312-partial-unit-${{ matrix.test-env }}
You can’t perform that action at this time.
0 commit comments