6
6
# Bazel artifacts, and can be invoked manually via the "Run workflow" button at
7
7
# https://github.com/tensorflow/quantum/actions/workflows/ci-build-checks.yaml
8
8
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
+ # yamllint disable rule:line-length
9
10
10
11
name : CI build checks
11
12
run-name : Continuous integration build & test
@@ -178,12 +179,12 @@ jobs:
178
179
debug : ${{steps.parameters.outputs.debug}}
179
180
steps :
180
181
- name : Check out a copy of the TFQ git repository
181
- uses : actions/checkout@v4
182
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
182
183
183
184
# Note: setup-python has a cache facility, but we don't use it here
184
185
# because we want to cache more Python things than setup-python does.
185
186
- name : Set up Python ${{inputs.python_ver || env.python_ver}}
186
- uses : actions/setup-python@v5
187
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
187
188
with :
188
189
python-version : ${{inputs.python_ver || env.python_ver}}
189
190
@@ -218,7 +219,7 @@ jobs:
218
219
fi
219
220
220
221
- name : Test if the cache already exists
221
- uses : actions/cache@v4
222
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
222
223
id : check_cache
223
224
with :
224
225
lookup-only : true
@@ -241,7 +242,7 @@ jobs:
241
242
steps.check_cache.outputs.cache-hit != 'true' ||
242
243
inputs.remake_python_cache == 'true'
243
244
name: Set up the Python cache
244
- uses: actions/cache@v4
245
+ uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
245
246
id: restore_cache
246
247
with:
247
248
key: ${{steps.parameters.outputs.python_cache_key}}
@@ -269,22 +270,22 @@ jobs:
269
270
runs-on : ubuntu-22.04
270
271
steps :
271
272
- name : Check out a copy of the TFQ git repository
272
- uses : actions/checkout@v4
273
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
273
274
274
275
- name : Set up Python
275
- uses : actions/setup-python@v5
276
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
276
277
with :
277
278
python-version : ${{inputs.python_ver || env.python_ver}}
278
279
279
280
- name : Restore our Python cache
280
- uses : actions/cache@v4
281
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
281
282
with :
282
283
key : ${{needs.Setup.outputs.python_cache_key}}
283
284
path : ${{needs.Setup.outputs.python_cache_paths}}
284
285
fail-on-cache-miss : true
285
286
286
287
- name : Set up Bazel
287
- uses :
bazel-contrib/[email protected]
288
+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
288
289
# Note that we don't need to set the Bazel version to use, because it
289
290
# knows to use what's in the .bazel-version file.
290
291
with :
@@ -307,7 +308,7 @@ jobs:
307
308
pip install -U ./wheel/*.whl
308
309
309
310
- name : Save the wheel for the tutorial tests
310
- uses : actions/upload-artifact@v4
311
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
311
312
with :
312
313
name : wheel-${{github.run_id}}
313
314
path : ./wheel
@@ -316,7 +317,7 @@ jobs:
316
317
317
318
- if : failure() || needs.Setup.outputs.debug == 'true'
318
319
name : Make Bazel artifacts downloadable for analysis
319
- uses : actions/upload-artifact@v4
320
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
320
321
with :
321
322
name : bazel-build-artifacts-${{github.run_id}}
322
323
retention-days : 14
@@ -338,22 +339,22 @@ jobs:
338
339
runs-on : ubuntu-22.04
339
340
steps :
340
341
- name : Check out a copy of the TFQ git repository
341
- uses : actions/checkout@v4
342
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
342
343
343
344
- name : Set up Python
344
- uses : actions/setup-python@v5
345
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
345
346
with :
346
347
python-version : ${{inputs.python_ver || env.python_ver}}
347
348
348
349
- name : Restore our Python cache
349
- uses : actions/cache@v4
350
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
350
351
with :
351
352
key : ${{needs.Setup.outputs.python_cache_key}}
352
353
path : ${{needs.Setup.outputs.python_cache_paths}}
353
354
fail-on-cache-miss : true
354
355
355
356
- name : Get the Python wheel we built
356
- uses : actions/download-artifact@v4
357
+ uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
357
358
with :
358
359
name : wheel-${{github.run_id}}
359
360
path : ./wheel
@@ -374,22 +375,22 @@ jobs:
374
375
runs-on : ubuntu-22.04
375
376
steps :
376
377
- name : Check out a copy of the TFQ git repository
377
- uses : actions/checkout@v4
378
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
378
379
379
380
- name : Set up Python
380
- uses : actions/setup-python@v5
381
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
381
382
with :
382
383
python-version : ${{inputs.python_ver || env.python_ver}}
383
384
384
385
- name : Restore our Python cache
385
- uses : actions/cache@v4
386
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
386
387
with :
387
388
key : ${{needs.Setup.outputs.python_cache_key}}
388
389
path : ${{needs.Setup.outputs.python_cache_paths}}
389
390
fail-on-cache-miss : true
390
391
391
392
- name : Set up Bazel
392
- uses :
bazel-contrib/[email protected]
393
+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
393
394
with :
394
395
bazelrc : ${{env.bazelrc_additions}}
395
396
bazelisk-cache : true
@@ -407,7 +408,7 @@ jobs:
407
408
408
409
- if : failure() || needs.Setup.outputs.debug == 'true'
409
410
name : Make Bazel artifacts downloadable for analysis
410
- uses : actions/upload-artifact@v4
411
+ uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
411
412
with :
412
413
name : bazel-tests-${{github.run_id}}
413
414
retention-days : 7
@@ -428,22 +429,22 @@ jobs:
428
429
needs : [Decision, Setup, Build_wheel]
429
430
steps :
430
431
- name : Check out a copy of the TFQ git repository
431
- uses : actions/checkout@v4
432
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
432
433
433
434
- name : Set up Python
434
- uses : actions/setup-python@v5
435
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
435
436
with :
436
437
python-version : ${{inputs.python_ver || env.python_ver}}
437
438
438
439
- name : Restore our Python cache
439
- uses : actions/cache@v4
440
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
440
441
with :
441
442
key : ${{needs.Setup.outputs.python_cache_key}}
442
443
path : ${{needs.Setup.outputs.python_cache_paths}}
443
444
fail-on-cache-miss : true
444
445
445
446
- name : Get the Python wheel we built
446
- uses : actions/download-artifact@v4
447
+ uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
447
448
with :
448
449
name : wheel-${{github.run_id}}
449
450
path : ./wheel
@@ -473,22 +474,22 @@ jobs:
473
474
runs-on : ubuntu-22.04
474
475
steps :
475
476
- name : Check out a copy of the TFQ git repository
476
- uses : actions/checkout@v4
477
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
477
478
478
479
- name : Set up Python
479
- uses : actions/setup-python@v5
480
+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
480
481
with :
481
482
python-version : ${{inputs.python_ver || env.python_ver}}
482
483
483
484
- name : Restore our Python cache
484
- uses : actions/cache@v4
485
+ uses : actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
485
486
with :
486
487
key : ${{needs.Setup.outputs.python_cache_key}}
487
488
path : ${{needs.Setup.outputs.python_cache_paths}}
488
489
fail-on-cache-miss : true
489
490
490
491
- name : Set up Bazel
491
- uses :
bazel-contrib/[email protected]
492
+ uses : bazel-contrib/setup-bazel@c50333a3696ad2e6df1e7a2f9b417c5336db774f # 0.12.0
492
493
with :
493
494
bazelrc : ${{env.bazelrc_additions}}
494
495
bazelisk-cache : true
0 commit comments