Skip to content

Commit 8a748de

Browse files
Cleanup CI
Signed-off-by: Keval Morabia <[email protected]>
1 parent add6912 commit 8a748de

File tree

6 files changed

+90
-81
lines changed

6 files changed

+90
-81
lines changed

.github/codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
uses: poseidon/[email protected]
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"

.github/workflows/gpu_tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ on:
1414

1515
# Cancel previous runs if new commit is pushed to the same PR
1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
17+
group: ${{ github.workflow }}-${{ github.ref }}
1818
cancel-in-progress: true
1919

2020
jobs:
21+
wait-dco:
22+
uses: ./.github/workflows/_wait_for_dco.yml
23+
permissions:
24+
checks: read
25+
secrets: inherit
2126
gpu-tests:
27+
needs: [wait-dco]
2228
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
2329
runs-on: linux-amd64-gpu-h100-latest-1
2430
timeout-minutes: 60

.github/workflows/multi_version_unit_tests.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/partial_unit_tests.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/unit_tests.yml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ concurrency:
2626
cancel-in-progress: true
2727

2828
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]
3036
runs-on: ubuntu-latest
3137
timeout-minutes: 30
3238
steps:
@@ -42,8 +48,9 @@ jobs:
4248
token: ${{ secrets.CODECOV_TOKEN }}
4349
fail_ci_if_error: true
4450
verbose: true
45-
unit-tests-windows:
51+
windows:
4652
if: github.event_name == 'pull_request'
53+
needs: [linux]
4754
runs-on: windows-latest
4855
timeout-minutes: 30
4956
steps:
@@ -53,3 +60,48 @@ jobs:
5360
python-version: "3.12"
5461
- name: Run unit tests (without coverage)
5562
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 }}

0 commit comments

Comments
 (0)