Skip to content

Commit 9abba82

Browse files
authored
Support merge queues for CI workflows (#896)
1 parent ed2915d commit 9abba82

File tree

4 files changed

+65
-5
lines changed

4 files changed

+65
-5
lines changed

.github/workflows/ci-build-checks.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1+
# Copyright 2025 The TensorFlow Quantum Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: 'CI: build & test'
216
run-name: Continuous integration build and test
317

18+
on:
19+
pull_request:
20+
branches:
21+
- master
422

5-
on: [pull_request]
23+
merge_group:
24+
types:
25+
- checks_requested
626

727
jobs:
828
wheel-build:

.github/workflows/ci-file-checks.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2025 The TensorFlow Quantum Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Summary: TFQ continuous integration workflow for static code analysis.
216
#
317
# This workflow runs linters and code format/style checkers on certain events
@@ -10,7 +24,6 @@
1024
# workflow summary to make it easier to learn the outcome. Finally, It can be
1125
# invoked manually using the "Run workflow" button on the page at
1226
# https://github.com/tensorflow/quantum/actions/workflows/ci-file-checks.yaml
13-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1427

1528
name: 'CI: lint & check formating'
1629
run-name: Continuous integration lint and format checks

.github/workflows/ci-nightly-build-test.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2025 The TensorFlow Quantum Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Summary: TFQ nightly full build & test.
216
#
317
# This workflow compiles TFQ and runs all test cases, to verify everything
@@ -12,7 +26,7 @@
1226
#
1327
# This workflow also can be invoked manually via the "Run workflow" button at
1428
# https://github.com/tensorflow/quantum/actions/workflows/ci-build-checks.yaml
15-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29+
1630
# yamllint disable rule:line-length
1731

1832
name: CI nightly full test

.github/workflows/ci-nightly-cirq-test.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
# Copyright 2025 The TensorFlow Quantum Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Summary: GitHub CI workflow for testing TFQ against Cirq releases
216
#
317
# This workflow is executed every night on a schedule. By default, this
418
# workflow will save Bazel build artifacts if an error occurs during a run.
5-
#
619
# For testing, this workflow can be invoked manually from the GitHub page at
720
# https://github.com/tensorflow/quantum/actions/workflows/ci-nightly-cirq-test.yaml
821
# Clicking the "Run workflow" button there will present a form interface with
922
# options for overridding some of the parameters for the run.
10-
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23+
1124
# yamllint disable rule:line-length
1225

1326
name: CI nightly Cirq compatibility test

0 commit comments

Comments
 (0)