diff --git a/.github/workflows/ci-build-checks.yaml b/.github/workflows/ci-build-checks.yaml index b7ff4461b..d2bf21980 100644 --- a/.github/workflows/ci-build-checks.yaml +++ b/.github/workflows/ci-build-checks.yaml @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# yamllint disable rule:line-length + name: 'CI: build & test' run-name: Continuous integration build and test @@ -37,8 +39,8 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: '3.10' architecture: 'x64' @@ -64,8 +66,8 @@ jobs: sudo apt-get update && sudo apt-get install -y lsb-release # This file, though it's empty, hangs the Bazel install step. rm -f /etc/bazel.bazelrc - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: '3.10' architecture: 'x64' @@ -113,8 +115,8 @@ jobs: sudo apt-get update && sudo apt-get install -y lsb-release # This file, though it's empty, hangs the Bazel install step. rm -f /etc/bazel.bazelrc - - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v5 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: '3.10' architecture: 'x64' diff --git a/.github/workflows/ci-file-checks.yaml b/.github/workflows/ci-file-checks.yaml index 166af5c90..8387de544 100644 --- a/.github/workflows/ci-file-checks.yaml +++ b/.github/workflows/ci-file-checks.yaml @@ -25,6 +25,8 @@ # invoked manually using the "Run workflow" button on the page at # https://github.com/tensorflow/quantum/actions/workflows/ci-file-checks.yaml +# yamllint disable rule:line-length + name: 'CI: lint & check formating' run-name: Continuous integration lint and format checks @@ -124,7 +126,7 @@ jobs: echo base=${{github.ref_name}} >> "$GITHUB_ENV" - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Determine files changed by this ${{github.event_name}} event uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 @@ -157,12 +159,12 @@ jobs: cache_paths: ${{steps.parameters.outputs.cache_paths}} steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # Note: setup-python has a cache facility, but we don't use it here # because we want to cache more Python things than setup-python does. - name: Set up Python ${{inputs.python_ver || env.python_ver}} - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{inputs.python_ver || env.python_ver}} @@ -182,7 +184,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Test if the cache already exists - uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 id: check_cache with: lookup-only: true @@ -205,7 +207,7 @@ jobs: steps.check_cache.outputs.cache-hit != 'true' || inputs.remake_python_cache == 'true' name: Set up the Python cache - uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 id: restore_cache with: key: ${{steps.parameters.outputs.cache_key}} @@ -242,7 +244,7 @@ jobs: changed_files: ${{needs.Changes.outputs.cc_files}} steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up clang-format output problem matcher run: echo '::add-matcher::.github/problem-matchers/clang-format.json' @@ -279,15 +281,15 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Python - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{inputs.python_ver || env.python_ver}} - name: Restore the Python cache - uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: key: ${{needs.Setup.outputs.cache_key}} path: ${{needs.Setup.outputs.cache_paths}} @@ -319,15 +321,15 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Python - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{inputs.python_ver || env.python_ver}} - name: Restore the Python cache - uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4 + uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 with: key: ${{needs.Setup.outputs.cache_key}} path: ${{needs.Setup.outputs.cache_paths}} @@ -365,7 +367,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up yamllint output problem matcher run: echo '::add-matcher::.github/problem-matchers/yamllint.json' diff --git a/.github/workflows/ci-nightly-build-test.yaml b/.github/workflows/ci-nightly-build-test.yaml index 60729172d..43bc14c71 100644 --- a/.github/workflows/ci-nightly-build-test.yaml +++ b/.github/workflows/ci-nightly-build-test.yaml @@ -82,7 +82,7 @@ jobs: run: ${{steps.commits.outputs.count > 0}} steps: - name: Check out a sparse copy of the git repo for TFQ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: sparse-checkout: . @@ -101,15 +101,15 @@ jobs: runs-on: linux-x86-n2-32 steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Python ${{inputs.py_version || env.py_version}} - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{inputs.py_version || env.py_version}} - name: Set up Bazel - uses: bazel-contrib/setup-bazel@f3f50ea6791b9b0f4c4eeabba4507422426462f5 # 0.9.1 + uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0 with: bazelrc: ${{env.bazelrc_additions}} @@ -143,7 +143,7 @@ jobs: - if: failure() || inputs.save_artifacts == 'true' name: Make artifacts downloadable - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: test-artifacts retention-days: 7 diff --git a/.github/workflows/ci-nightly-cirq-test.yaml b/.github/workflows/ci-nightly-cirq-test.yaml index f322d4ceb..3d92e6a1b 100644 --- a/.github/workflows/ci-nightly-cirq-test.yaml +++ b/.github/workflows/ci-nightly-cirq-test.yaml @@ -91,11 +91,11 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out a copy of the TFQ git repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up Python ${{inputs.py_version || env.py_version}} id: python - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{inputs.py_version || env.py_version}} architecture: ${{inputs.arch || env.arch}} @@ -131,7 +131,7 @@ jobs: - name: Set up Bazel with caching if: env.use_bazel_disk_cache == 'true' - uses: bazel-contrib/setup-bazel@529dbc2648ea79358c64f2bfa5f3ec98f07859e4 # 0.12.1 + uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0 env: USE_BAZEL_VERSION: ${{inputs.bazel_version || env.bazel_version}} with: @@ -145,7 +145,7 @@ jobs: - name: Set up Bazel without caching if: env.use_bazel_disk_cache == 'false' - uses: bazel-contrib/setup-bazel@529dbc2648ea79358c64f2bfa5f3ec98f07859e4 # 0.12.1 + uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0 env: USE_BAZEL_VERSION: ${{inputs.bazel_version || env.bazel_version}} with: @@ -177,7 +177,7 @@ jobs: if: >- github.event.inputs.save_artifacts == 'true' && (failure() || github.event_name == 'workflow_dispatch') - uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 with: name: bazel-out retention-days: 7