Skip to content

Commit

Permalink
Prevent labels from triggering CI (#899)
Browse files Browse the repository at this point in the history
**Context:**
CI is being triggered by adding any label to a PR in "ready for review"
state. This fixes that undesired behaviour

**Description of the Change:**
Removes the `labeled` PR type from workflows. 

**Benefits:**
Prevents unnecessary resource usage.

**Possible Drawbacks:**
When labels are added that intend to affect CI, a followup commit must
be made to trigger the CI

**Related GitHub Issues:**

### Verification:
Added various labels to this PR in a "ready for review" state, no CI
checks were triggered as a result.

---------

Co-authored-by: ringo-but-quantum <[email protected]>
Co-authored-by: Amintor Dusko <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 43374cc commit ee561f6
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 22 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests_lgpu_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_lgpu_cpp.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lgpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lgpu_python.yml'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lgpumpi_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_lgpumpi_cpp.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lgpumpi_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lgpumpi_python.yml'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_linux_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_linux_cpp.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lkcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lkcpu_python.yml'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lkcuda_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- pennylane_lightning/core/src/**
- '!pennylane_lightning/core/src/simulators/lightning_gpu/**'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lkcuda_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lkcuda_python.yml'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lmps_tncuda_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_lmps_tncuda_cpp.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lmps_tncuda_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lmps_tncuda_python.yml'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_lqcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_windows_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_windows_cpp.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests_without_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- pennylane_lightning/core/src/**
push:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tidy.yml
- pennylane_lightning/core/src/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_linux_x86_64_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_macos_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_noarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/wheel_win_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.39.0-dev15"
__version__ = "0.39.0-dev16"

0 comments on commit ee561f6

Please sign in to comment.