Skip to content

Commit

Permalink
Run CI conditionally with paths (#695)
Browse files Browse the repository at this point in the history
* Try update lightning CI paths

* Auto update version

* Update kokkos tests to trigger on changes to pl core

* Auto update version

* Split tests_linux.yml into cpp/python.

* Auto update version from '0.36.0-dev36' to '0.36.0-dev38'

* Split GPU tests into cpp/python.

* Split MPI-GPU tests into cpp/python.

* Fix LGPU triggers.

* Remove python tests from LGPU-C++.

* Remove upload-to-codecov-linux-cpp from LGPUMPI tests.

* Rename test workflows.

* Update changelog.

* Change group names.

* Use paths-ignore to simplify workflow paths

* Auto update version from '0.36.0-dev38' to '0.36.0-dev39'

* Fix test names.

* you may only define one of `paths` and `paths-ignore` for a single event

* Fix formatting

* Auto update version from '0.36.0-dev39' to '0.36.0-dev40'

* Change to paths-ignore in no-bin tests.

* Auto update version from '0.36.0-dev40' to '0.36.0-dev41'

* trigger ci

* Update .github/workflows/tests_windows_cpp.yml

Co-authored-by: Ali Asadi <[email protected]>

* Update .github/workflows/tests_lkcuda_python.yml

Co-authored-by: Ali Asadi <[email protected]>

* Update .github/workflows/tests_lkcuda_cpp.yml

Co-authored-by: Ali Asadi <[email protected]>

* Update .github/workflows/tests_lkcuda_cpp.yml

Co-authored-by: Ali Asadi <[email protected]>

* Use ! to exclude paths.

* Auto update version from '0.36.0-dev41' to '0.36.0-dev42'

* Update compat workflows.

---------

Co-authored-by: Rashid N H M <[email protected]>
Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com>
Co-authored-by: ringo-but-quantum <[email protected]>
Co-authored-by: Ali Asadi <[email protected]>
Co-authored-by: Lee J. O'Riordan <[email protected]>
  • Loading branch information
6 people authored Apr 25, 2024
1 parent 6260d59 commit 8b131ca
Show file tree
Hide file tree
Showing 17 changed files with 1,226 additions and 786 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@

### Breaking changes

* Add `paths` directives to test workflows to avoid running tests that cannot be impacted by changes.
[(#695)](https://github.com/PennyLaneAI/pennylane-lightning/pull/695)

* Move common components of `/src/simulator/lightning_gpu/utils/` to `/src/utils/cuda_utils/`.
[(#676)](https://github.com/PennyLaneAI/pennylane-lightning/pull/676)

Expand Down
71 changes: 53 additions & 18 deletions .github/workflows/compat-check-latest-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,73 @@ on:
workflow_dispatch:

jobs:
tests_linux:
name: Lightning Compatibility test (tests_linux) - latest/latest
uses: ./.github/workflows/tests_linux.yml
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - latest/latest
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lkokkos_gpu:
name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/latest
uses: ./.github/workflows/tests_gpu_kokkos.yml
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - latest/latest
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lgpu_gpu:
name: Lightning Compatibility test (tests_lgpu_gpu) - latest/latest
uses: ./.github/workflows/tests_gpu_cuda.yml
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - latest/latest
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lgpu_gpu_mpi:
name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/latest
uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - latest/latest
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit # pass all secrets
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - latest/latest
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - latest/latest
uses: ./.github/workflows/lgpu_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - latest/latest
uses: ./.github/workflows/lgpumpi_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/latest
uses: ./.github/workflows/linux_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - latest/latest
uses: ./.github/workflows/lkcuda_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - latest/latest
uses: ./.github/workflows/tests_without_binary.yml
uses: ./.github/workflows/without_binary.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit # pass all secrets
secrets: inherit
72 changes: 54 additions & 18 deletions .github/workflows/compat-check-latest-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,74 @@ on:
workflow_dispatch:

jobs:
tests_linux:
name: Lightning Compatibility test (tests_linux) - latest/stable
uses: ./.github/workflows/tests_linux.yml
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - latest/stable
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit # pass all secrets
tests_lkokkos_gpu:
name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/stable
uses: ./.github/workflows/tests_gpu_kokkos.yml
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - latest/stable
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit # pass all secrets
tests_lgpu_gpu:
name: Lightning Compatibility test (tests_lgpu_gpu) - latest/stable
uses: ./.github/workflows/tests_gpu_cuda.yml
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - latest/stable
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit # pass all secrets
tests_lgpu_gpu_mpi:
name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/stable
uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - latest/stable
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit # pass all secrets
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - latest/stable
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - latest/stable
uses: ./.github/workflows/lgpu_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - latest/stable
uses: ./.github/workflows/lgpumpi_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/stable
uses: ./.github/workflows/linux_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - latest/stable
uses: ./.github/workflows/lkcuda_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - latest/stable
uses: ./.github/workflows/tests_without_binary.yml
uses: ./.github/workflows/without_binary.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit # pass all secrets
secrets: inherit

72 changes: 54 additions & 18 deletions .github/workflows/compat-check-release-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,74 @@ on:
workflow_dispatch:

jobs:
tests_linux:
name: Lightning Compatibility test (tests_linux) - release/release
uses: ./.github/workflows/tests_linux.yml
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - release/release
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit # pass all secrets
tests_lkokkos_gpu:
name: Lightning Compatibility test (tests_lkokkos_gpu) - release/release
uses: ./.github/workflows/tests_gpu_kokkos.yml
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - release/release
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit # pass all secrets
tests_lgpu_gpu:
name: Lightning Compatibility test (tests_lgpu_gpu) - release/release
uses: ./.github/workflows/tests_gpu_cuda.yml
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - release/release
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit # pass all secrets
tests_lgpu_gpu_mpi:
name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - release/release
uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - release/release
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit # pass all secrets
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - release/release
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - release/release
uses: ./.github/workflows/lgpu_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - release/release
uses: ./.github/workflows/lgpumpi_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - release/release
uses: ./.github/workflows/linux_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - release/release
uses: ./.github/workflows/lkcuda_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - release/release
uses: ./.github/workflows/tests_without_binary.yml
uses: ./.github/workflows/without_binary.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit # pass all secrets
secrets: inherit

72 changes: 54 additions & 18 deletions .github/workflows/compat-check-stable-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,74 @@ on:
workflow_dispatch:

jobs:
tests_linux:
name: Lightning Compatibility test (tests_linux) - stable/latest
uses: ./.github/workflows/tests_linux.yml
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - stable/latest
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lkokkos_gpu:
name: Lightning Compatibility test (tests_lkokkos_gpu) - stable/latest
uses: ./.github/workflows/tests_gpu_kokkos.yml
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - stable/latest
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lgpu_gpu:
name: Lightning Compatibility test (tests_lgpu_gpu) - stable/latest
uses: ./.github/workflows/tests_gpu_cuda.yml
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - stable/latest
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit # pass all secrets
tests_lgpu_gpu_mpi:
name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - stable/latest
uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - stable/latest
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit # pass all secrets
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - stable/latest
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - stable/latest
uses: ./.github/workflows/lgpu_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - stable/latest
uses: ./.github/workflows/lgpumpi_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - stable/latest
uses: ./.github/workflows/linux_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - stable/latest
uses: ./.github/workflows/lkcuda_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - stable/latest
uses: ./.github/workflows/tests_without_binary.yml
uses: ./.github/workflows/without_binary.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit # pass all secrets
secrets: inherit

Loading

0 comments on commit 8b131ca

Please sign in to comment.