Skip to content

Commit

Permalink
Add merge queue trigger for required workflows (#6860)
Browse files Browse the repository at this point in the history
**Context:**
This pull request adds a new trigger to the existing workflows that run
`on.pull_request`. This trigger indicates to GitHub which workflows
needs to be run when a merge queue is building.

**Description of the Change:**
The change is adding `on.merge_group` to our required workflows.

**Benefits:**
This change itself will not enable merge queues, that needs to be
enabled from the admin settings of branch protection rules.

The changes in this PR mainly tell merge queues which workflows to run.

**Possible Drawbacks:**
Usage of merge queue is a new thing for pennylane, if issues arise we
can rollback.

**Related GitHub Issues:**
None. [sc-82039]
  • Loading branch information
rashidnhm authored Jan 23, 2025
1 parent 8a12fa5 commit f367e01
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

name: "Documentation check"
on:
merge_group:
types:
- checks_requested
pull_request:
types:
- opened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Formatting check
on:
merge_group:
types:
- checks_requested
pull_request:
types:
- opened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/module-validation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Validate module imports

on:
merge_group:
types:
- checks_requested
pull_request:
types:
- opened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- master
merge_group:
types:
- checks_requested
pull_request:
types:
- opened
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
# Scheduled trigger on Monday at 2:47am UTC
schedule:
- cron: "47 2 * * 1"
merge_group:
types:
- checks_requested

concurrency:
group: unit-tests-${{ github.ref }}
Expand Down

0 comments on commit f367e01

Please sign in to comment.