Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable CI for draft PRs #847

Merged
merged 20 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e464d4e
disbable CI for draft PRs
anthayes92 Aug 12, 2024
491a1f0
Auto update version from '0.38.0-dev28' to '0.38.0-dev29'
ringo-but-quantum Aug 12, 2024
23a2e8b
remove futile condition
anthayes92 Aug 12, 2024
968172c
Merge branch 'disable-ci-for-pl-lightning-draft-prs' of github.com:Pe…
anthayes92 Aug 12, 2024
6d9b3dc
Auto update version from '0.38.0-dev29' to '0.38.0-dev30'
ringo-but-quantum Aug 12, 2024
6e29511
Merge branch 'master' into disable-ci-for-pl-lightning-draft-prs
anthayes92 Aug 12, 2024
2e7d491
add labeled pr type
anthayes92 Aug 12, 2024
4b66312
Merge branch 'disable-ci-for-pl-lightning-draft-prs' of github.com:Pe…
anthayes92 Aug 12, 2024
ab11561
Merge branch 'master' into disable-ci-for-pl-lightning-draft-prs
anthayes92 Aug 13, 2024
b875587
Auto update version from '0.38.0-dev31' to '0.38.0-dev32'
ringo-but-quantum Aug 13, 2024
058a477
reorder conds
anthayes92 Aug 14, 2024
7a4d484
Auto update version from '0.38.0-dev32' to '0.38.0-dev33'
ringo-but-quantum Aug 14, 2024
066e3c2
Merge branch 'master' into disable-ci-for-pl-lightning-draft-prs
anthayes92 Aug 14, 2024
cddf5a5
Auto update version from '0.38.0-dev32' to '0.38.0-dev33'
ringo-but-quantum Aug 14, 2024
a62581a
remove workflow_dispatch condition
anthayes92 Aug 14, 2024
4339e8b
Merge branch 'disable-ci-for-pl-lightning-draft-prs' of github.com:Pe…
anthayes92 Aug 14, 2024
d28056e
Merge branch 'master' into disable-ci-for-pl-lightning-draft-prs
anthayes92 Aug 15, 2024
6822139
Auto update version from '0.38.0-dev34' to '0.38.0-dev35'
ringo-but-quantum Aug 15, 2024
c72e096
Merge branch 'master' into disable-ci-for-pl-lightning-draft-prs
mlxd Aug 23, 2024
b75cd06
Auto update version from '0.38.0-dev47' to '0.38.0-dev48'
ringo-but-quantum Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/tests_lgpu_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
anthayes92 marked this conversation as resolved.
Show resolved Hide resolved
paths:
- .github/workflows/tests_lgpu_cpp.yml
- pennylane_lightning/core/src/**
Expand All @@ -34,6 +40,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_lgpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lgpu_python.yml'
Expand Down Expand Up @@ -38,6 +44,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests_lgpumpi_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_lgpumpi_cpp.yml
- pennylane_lightning/core/src/**
Expand All @@ -33,7 +39,7 @@ concurrency:

jobs:
cpp_tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') && !contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
if: ${{ github.event.pull_request.draft == false && (contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name)) }}
anthayes92 marked this conversation as resolved.
Show resolved Hide resolved
runs-on:
- self-hosted
- linux
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests_lgpumpi_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lgpumpi_python.yml'
Expand All @@ -35,7 +41,7 @@ concurrency:
jobs:

python_tests:
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
if: ${{ github.event.pull_request.draft == false && (contains(github.event.pull_request.labels.*.name, 'ci:use-multi-gpu-runner') || contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name)) }}
runs-on:
- self-hosted
- linux
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_linux_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_linux_cpp.yml
- pennylane_lightning/core/src/**
Expand All @@ -35,6 +41,7 @@ concurrency:

jobs:
determine_runner:
if: github.event.pull_request.draft == false
name: Determine runner type to use
uses: ./.github/workflows/determine-workflow-runner.yml
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tests_lkcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lkcpu_python.yml'
Expand Down Expand Up @@ -40,12 +46,14 @@ concurrency:
jobs:

determine_runner:
if: github.event.pull_request.draft == false
name: Determine runner type to use
uses: ./.github/workflows/determine-workflow-runner.yml
with:
default_runner: ubuntu-22.04

build_and_cache_Kokkos:
if: github.event.pull_request.draft == false
name: "Build and cache Kokkos"
uses: ./.github/workflows/build_and_cache_Kokkos_linux.yml
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_lkcuda_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- pennylane_lightning/core/src/**
- '!pennylane_lightning/core/src/simulators/lightning_gpu/**'
Expand All @@ -34,6 +40,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tests_lkcuda_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lkcuda_python.yml'
Expand Down Expand Up @@ -38,6 +44,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down Expand Up @@ -291,4 +298,4 @@ jobs:
with:
name: ubuntu-codecov-results-python
path: ./main/coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml
if-no-files-found: error
if-no-files-found: error
7 changes: 7 additions & 0 deletions .github/workflows/tests_lmps_tncuda_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_lmps_tncuda_cpp.yml
- pennylane_lightning/core/src/**
Expand All @@ -36,6 +42,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_lmps_tncuda_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- .github/**
- '!.github/workflows/tests_lmps_tncuda_python.yml'
Expand All @@ -38,6 +44,7 @@ concurrency:

jobs:
builddeps:
if: github.event.pull_request.draft == false
runs-on:
- self-hosted
- ubuntu-22.04
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_lqcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand All @@ -29,6 +35,7 @@ concurrency:

jobs:
determine_runner:
if: github.event.pull_request.draft == false
name: Determine runner type to use
uses: ./.github/workflows/determine-workflow-runner.yml
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tests_windows_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tests_windows_cpp.yml
- pennylane_lightning/core/src/**
Expand All @@ -25,6 +31,7 @@ concurrency:

jobs:
win-set-matrix-x86:
if: github.event.pull_request.draft == false
name: Set builder matrix
runs-on: ubuntu-latest

Expand Down Expand Up @@ -98,7 +105,7 @@ jobs:
cmake --install ./Build --config Debug --verbose

cpptests:
if: ${{ !contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }}
if: ${{ !contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) && github.event.pull_request.draft == false}}
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests_without_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
required: true
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths-ignore:
- pennylane_lightning/core/src/**
push:
Expand All @@ -26,6 +32,7 @@ concurrency:

jobs:
determine_runner:
if: github.event.pull_request.draft == false
name: Determine runner type to use
uses: ./.github/workflows/determine-workflow-runner.yml
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Clang-tidy check
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
paths:
- .github/workflows/tidy.yml
- pennylane_lightning/core/src/**
Expand All @@ -17,6 +23,7 @@ concurrency:
jobs:

tidy-cpp:
if: github.event.pull_request.draft == false
strategy:
matrix:
pl_backend: ["lightning_qubit"]
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/wheel_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: Wheel::Linux::ARM

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand All @@ -22,8 +28,7 @@ jobs:
set_wheel_build_matrix:
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'ci:build_wheels') ||
github.event_name == 'workflow_dispatch'
(github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci:build_wheels'))
name: "Set wheel build matrix"
uses: ./.github/workflows/set_wheel_build_matrix.yml
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/wheel_linux_ppc64le.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: Wheel::Linux::PowerPC

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- labeled
push:
branches:
- master
Expand All @@ -22,8 +28,7 @@ jobs:
set_wheel_build_matrix:
if: |
github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'ci:build_wheels') ||
github.event_name == 'workflow_dispatch'
(github.event.pull_request.draft == false && contains(github.event.pull_request.labels.*.name, 'ci:build_wheels'))
name: "Set wheel build matrix"
uses: ./.github/workflows/set_wheel_build_matrix.yml
with:
Expand Down Expand Up @@ -191,4 +196,4 @@ jobs:
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
Loading
Loading