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