@@ -20,6 +20,7 @@ permissions: read-all
20
20
21
21
jobs :
22
22
quick_test :
23
+ if : github.repository_owner == 'quantumlib'
23
24
name : Misc check
24
25
runs-on : ubuntu-22.04
25
26
steps :
33
34
- name : Misc
34
35
run : check/misc
35
36
packaging_test :
37
+ if : github.repository_owner == 'quantumlib'
36
38
name : Packaging test
37
39
runs-on : ubuntu-22.04
38
40
steps :
48
50
- name : Run packaging test
49
51
run : ./dev_tools/packaging/packaging_test.sh
50
52
format :
53
+ if : github.repository_owner == 'quantumlib'
51
54
name : Format check
52
55
runs-on : ubuntu-22.04
53
56
steps :
65
68
- name : Format
66
69
run : check/format-incremental
67
70
mypy :
71
+ if : github.repository_owner == 'quantumlib'
68
72
name : Type check
69
73
runs-on : ubuntu-22.04
70
74
steps :
80
84
- name : Type check
81
85
run : check/mypy
82
86
changed_files :
87
+ if : github.repository_owner == 'quantumlib'
83
88
name : Changed files test
84
89
runs-on : ubuntu-22.04
85
90
steps :
97
102
- name : Changed files test
98
103
run : check/pytest-changed-files -n auto
99
104
lint :
105
+ if : github.repository_owner == 'quantumlib'
100
106
name : Lint check
101
107
runs-on : ubuntu-22.04
102
108
steps :
@@ -114,6 +120,7 @@ jobs:
114
120
- name : Lint
115
121
run : check/pylint -v
116
122
doc_test :
123
+ if : github.repository_owner == 'quantumlib'
117
124
name : Doc test
118
125
runs-on : ubuntu-22.04
119
126
steps :
@@ -129,6 +136,7 @@ jobs:
129
136
- name : Doc check
130
137
run : check/doctest -q
131
138
nbformat :
139
+ if : github.repository_owner == 'quantumlib'
132
140
name : Notebook formatting
133
141
runs-on : ubuntu-22.04
134
142
steps :
@@ -144,6 +152,7 @@ jobs:
144
152
- name : Doc check
145
153
run : check/nbformat
146
154
shellcheck :
155
+ if : github.repository_owner == 'quantumlib'
147
156
name : Shell check
148
157
runs-on : ubuntu-22.04
149
158
steps :
@@ -154,6 +163,7 @@ jobs:
154
163
- name : Run shellcheck
155
164
run : check/shellcheck
156
165
isolated-modules :
166
+ if : github.repository_owner == 'quantumlib'
157
167
name : Isolated pytest Ubuntu
158
168
runs-on : ubuntu-22.04
159
169
steps :
@@ -169,6 +179,7 @@ jobs:
169
179
- name : Test each module in isolation
170
180
run : pytest -n auto --enable-slow-tests dev_tools/packaging/isolated_packages_test.py
171
181
pytest :
182
+ if : github.repository_owner == 'quantumlib'
172
183
name : Pytest Ubuntu
173
184
strategy :
174
185
matrix :
@@ -202,6 +213,7 @@ jobs:
202
213
run : docker compose -f cirq-rigetti/docker-compose.test.yaml down
203
214
# TODO(#6706) remove after we start using NumPy 2.0 in regular pytest
204
215
pytest-numpy-2 :
216
+ if : github.repository_owner == 'quantumlib'
205
217
name : Pytest Ubuntu with NumPy-2
206
218
strategy :
207
219
matrix :
@@ -230,6 +242,7 @@ jobs:
230
242
- name : Pytest check
231
243
run : check/pytest -n auto --durations=20 --ignore=cirq-rigetti
232
244
pip-compile :
245
+ if : github.repository_owner == 'quantumlib'
233
246
name : Check consistency of requirements
234
247
runs-on : ubuntu-22.04
235
248
steps :
@@ -246,6 +259,7 @@ jobs:
246
259
run : |
247
260
pip-compile --resolver=backtracking dev_tools/requirements/deps/cirq-all.txt -o-
248
261
build_protos :
262
+ if : github.repository_owner == 'quantumlib'
249
263
name : Build protos
250
264
runs-on : ubuntu-22.04
251
265
steps :
@@ -264,6 +278,7 @@ jobs:
264
278
- name : Build protos
265
279
run : check/protos-up-to-date
266
280
coverage :
281
+ if : github.repository_owner == 'quantumlib'
267
282
name : Coverage check
268
283
runs-on : ubuntu-22.04
269
284
steps :
@@ -299,6 +314,7 @@ jobs:
299
314
- name : Stop Quil dependencies
300
315
run : docker compose -f cirq-rigetti/docker-compose.test.yaml down
301
316
windows :
317
+ if : github.repository_owner == 'quantumlib'
302
318
name : Pytest Windows
303
319
strategy :
304
320
matrix :
@@ -326,6 +342,7 @@ jobs:
326
342
check/pytest -n auto --durations=20 --ignore=cirq-core/cirq/contrib
327
343
shell : bash
328
344
macos :
345
+ if : github.repository_owner == 'quantumlib'
329
346
name : Pytest MacOS
330
347
strategy :
331
348
matrix :
@@ -350,6 +367,7 @@ jobs:
350
367
- name : Pytest check
351
368
run : check/pytest -n auto --durations=20 --ignore=cirq-core/cirq/contrib
352
369
notebooks-stable :
370
+ if : github.repository_owner == 'quantumlib'
353
371
name : Changed Notebooks Isolated Test against Cirq stable
354
372
env :
355
373
NOTEBOOK_PARTITIONS : 4
@@ -379,6 +397,7 @@ jobs:
379
397
name : notebook-outputs
380
398
path : out
381
399
notebooks-branch :
400
+ if : github.repository_owner == 'quantumlib'
382
401
name : Notebook Tests against PR
383
402
runs-on : ubuntu-22.04
384
403
steps :
@@ -400,6 +419,7 @@ jobs:
400
419
name : notebook-outputs
401
420
path : out
402
421
ts-build :
422
+ if : github.repository_owner == 'quantumlib'
403
423
name : Bundle file consistency
404
424
runs-on : ubuntu-22.04
405
425
steps :
@@ -414,6 +434,7 @@ jobs:
414
434
- name : Check build matches the current
415
435
run : check/ts-build-current
416
436
ts-lint :
437
+ if : github.repository_owner == 'quantumlib'
417
438
name : Typescript lint check
418
439
runs-on : ubuntu-22.04
419
440
steps :
@@ -428,6 +449,7 @@ jobs:
428
449
- name : Lint Typescript files
429
450
run : check/ts-lint
430
451
ts-test :
452
+ if : github.repository_owner == 'quantumlib'
431
453
name : Typescript tests
432
454
runs-on : ubuntu-22.04
433
455
steps :
@@ -444,6 +466,7 @@ jobs:
444
466
- name : Run end-to-end tests
445
467
run : check/ts-test-e2e
446
468
ts-coverage :
469
+ if : github.repository_owner == 'quantumlib'
447
470
name : Typescript tests coverage
448
471
runs-on : ubuntu-22.04
449
472
steps :
0 commit comments