Skip to content

Commit

Permalink
Merge branch 'master' into add/std
Browse files Browse the repository at this point in the history
  • Loading branch information
AmintorDusko authored Aug 26, 2024
2 parents 8f58d75 + 07108df commit 5cdd52d
Show file tree
Hide file tree
Showing 25 changed files with 163 additions and 25 deletions.
3 changes: 0 additions & 3 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@

### Improvements

* Updated the version of Pybind11 to v2.13.5.
[(#816)](https://github.com/PennyLaneAI/pennylane-lightning/pull/816/)

* Updated calls of ``size_t`` to ``std::size_t`` everywhere.
[(#816)](https://github.com/PennyLaneAI/pennylane-lightning/pull/816/)

Expand Down
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
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)) }}
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

0 comments on commit 5cdd52d

Please sign in to comment.