-
Notifications
You must be signed in to change notification settings - Fork 23
188 lines (175 loc) · 6.33 KB
/
Copy pathci.yaml
File metadata and controls
188 lines (175 loc) · 6.33 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: CI
run-name: >-
${{ github.event_name == 'pull_request'
&& format('CI · PR #{0} · {1} · @{2}', github.event.pull_request.number, github.event.pull_request.head.ref, github.actor)
|| format('CI · push {0} · @{1}', github.ref_name, github.actor) }}
on:
pull_request:
branches: [main]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# ── Stage 1: cheap correctness gate (ubuntu-latest, ungated). ──
# Stage 2 runs only if all three of these pass.
check:
name: Linux / make check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make check`
run: make check
test-smoke:
name: Linux / make test-smoke
runs-on: ubuntu-latest
timeout-minutes: 45
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-smoke`
run: make test-smoke
test-tutorials:
name: Linux / make test-tutorials
runs-on: ubuntu-latest
timeout-minutes: 60
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-tutorials`
run: make test-tutorials
# ── Stage 2: full test matrix, gated on Stage 1. ──
macos-tests:
name: macOS / make test-highest-pytorch / markers=not-slow
needs: [check, test-smoke, test-tutorials]
if: github.repository == 'apple/coreai-optimization'
runs-on: [self-hosted, macos, tahoe, ARM64]
timeout-minutes: 60
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-highest-pytorch`
run: make test-highest-pytorch PYTEST_ARGS="--marker 'not slow' --junit"
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-macos-highest-fast
path: test-results/
linux-highest-slow:
name: Linux / make test-highest-pytorch / markers=slow
needs: [check, test-smoke, test-tutorials]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-highest-pytorch`
run: make test-highest-pytorch PYTEST_ARGS="--marker slow --junit"
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-linux-highest-slow
path: test-results/
linux-highest-fast:
name: Linux / make test-highest-pytorch / markers=not-slow
needs: [check, test-smoke, test-tutorials]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-highest-pytorch`
run: make test-highest-pytorch PYTEST_ARGS="--marker 'not slow' --junit"
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-linux-highest-fast
path: test-results/
linux-lowest-slow:
name: Linux / make test-lowest-pytorch / markers=slow
needs: [check, test-smoke, test-tutorials]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-lowest-pytorch`
run: make test-lowest-pytorch PYTEST_ARGS="--marker slow --junit"
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-linux-lowest-slow
path: test-results/
linux-lowest-fast:
name: Linux / make test-lowest-pytorch / markers=not-slow
needs: [check, test-smoke, test-tutorials]
runs-on: ubuntu-latest
timeout-minutes: 120
env:
INSTALL_PRECOMMIT: "false"
steps:
- name: Check out repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
with:
enable-cache: false
- name: Run `make test-lowest-pytorch`
run: make test-lowest-pytorch PYTEST_ARGS="--marker 'not slow' --junit"
- name: Upload test results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-linux-lowest-fast
path: test-results/