Skip to content

Commit a5c349c

Browse files
Do not run GPU tests and Docker workflows on release. (#788)
### Before submitting Please complete the following checklist when submitting a PR: - [x] All new features must include a unit test. If you've fixed a bug or added code that should be tested, add a test to the [`tests`](../tests) directory! - [x] All new functions and code must be clearly commented and documented. If you do make documentation changes, make sure that the docs build and render correctly by running `make docs`. - [ ] Ensure that the test suite passes, by running `make test`. - [x] Add a new entry to the `.github/CHANGELOG.md` file, summarizing the change, and including a link back to the PR. - [x] Ensure that code is properly formatted by running `make format`. When all the above are checked, delete everything above the dashed line and fill in the pull request template. ------------------------------------------------------------------------------------------------------------ **Context:** Some test workflows are run on release (GPU ones) and not others. The Docker build workflow is also run, but it it missing required inputs. **Description of the Change:** Do not run the mentioned workflows on release. The Docker workflow in particular cannot be run because it requires the new PennyLane release which is not available when Lightning is released. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-68101] --------- Co-authored-by: vincentmr <[email protected]> Co-authored-by: ringo-but-quantum <[email protected]>
1 parent 5006f05 commit a5c349c

12 files changed

+18
-23
lines changed

.github/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
### Breaking changes
66

7+
* Do not run GPU tests and Docker workflows on release.
8+
[(#788)](https://github.com/PennyLaneAI/pennylane-lightning/pull/788)
9+
710
### Improvements
811
* Add a Catalyst-specific wrapping class for Lightning Kokkos.
912
[(#770)](https://github.com/PennyLaneAI/pennylane-lightning/pull/770)

.github/workflows/compat-docker-latest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Docker latest - Linux::x86_64
1515
uses: ./.github/workflows/docker_linux_x86_64.yml
1616
with:
17-
lightning-version: v0.36.0
18-
pennylane-version: v0.36.0
17+
lightning-version: master
18+
pennylane-version: master
1919
push-to-dockerhub: false
2020
secrets: inherit # pass all secrets

.github/workflows/compat-docker-release.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
name: Compat Check Docker - Lightning@latest
1+
name: Compat Check Docker - Lightning@release
22

33
on:
4-
schedule:
5-
- cron: "0 4 * * 1-5" # Run daily at 4am Mon-Fri
64
workflow_dispatch:
75

86
concurrency:
9-
group: docker_linux_x86_64-latest
7+
group: docker_linux_x86_64-release
108
cancel-in-progress: true
119

1210
jobs:
13-
docker_linux_x86_64_latest:
14-
name: Docker latest - Linux::x86_64
11+
docker_linux_x86_64_release:
12+
name: Docker release - Linux::x86_64
1513
uses: ./.github/workflows/docker_linux_x86_64.yml
1614
with:
1715
lightning-version: v0.37.0
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
name: Compat Check Docker - Lightning@master
1+
name: Compat Check Docker - Lightning@stable
22

33
on:
44
schedule:
55
- cron: "0 4 * * 1-5" # Run daily at 4am Mon-Fri
66
workflow_dispatch:
77

88
concurrency:
9-
group: docker_linux_x86_64-master
9+
group: docker_linux_x86_64-stable
1010
cancel-in-progress: true
1111

1212
jobs:
13-
docker_linux_x86_64_develop:
14-
name: Docker develop - Linux::x86_64
13+
docker_linux_x86_64_stable:
14+
name: Docker stable - Linux::x86_64
1515
uses: ./.github/workflows/docker_linux_x86_64.yml
1616
with:
17-
lightning-version: master
18-
pennylane-version: master
17+
lightning-version: v0.37.0
18+
pennylane-version: v0.37.0
1919
push-to-dockerhub: false
2020
secrets: inherit # pass all secrets

.github/workflows/docker_linux_x86_64.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ name: Docker::Linux::x86_64
55
# **Who does it impact**: Docker images uploaded to Docker Hub provide yet another way to install and use PennyLane + Lightning. It is especially useful on HPC platforms where environments can be difficult to set up.
66

77
on:
8-
release:
9-
types: [published]
108
workflow_dispatch:
119
inputs:
1210
lightning-version:
@@ -83,6 +81,7 @@ jobs:
8381
8482
- name: Build and push version
8583
uses: docker/build-push-action@v5
84+
if: ${{ inputs.push-to-dockerhub == 'true' }}
8685
with:
8786
push: ${{ inputs.push-to-dockerhub }}
8887
context: .
@@ -95,6 +94,7 @@ jobs:
9594
9695
- name: Build and push latest
9796
uses: docker/build-push-action@v5
97+
if: ${{ inputs.push-to-dockerhub == 'true' }}
9898
with:
9999
push: ${{ inputs.push-to-dockerhub }}
100100
context: .

.github/workflows/tests_lgpu_cpp.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
type: string
1111
required: true
1212
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)
13-
release:
1413
pull_request:
1514
paths:
1615
- .github/workflows/tests_lgpu_cpp.yml

.github/workflows/tests_lgpu_python.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
type: string
1111
required: true
1212
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)
13-
release:
1413
pull_request:
1514
paths-ignore:
1615
- .github/**

.github/workflows/tests_lgpumpi_cpp.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
type: string
1111
required: true
1212
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
13-
release:
1413
push:
1514
branches:
1615
- main

.github/workflows/tests_lgpumpi_python.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
type: string
1111
required: true
1212
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
13-
release:
1413
push:
1514
branches:
1615
- main

.github/workflows/tests_lmps_tncuda_cpp.yml

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
type: string
1414
required: true
1515
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)
16-
release:
1716
pull_request:
1817
paths:
1918
- .github/workflows/tests_lmps_tncuda_cpp.yml

.github/workflows/tests_lmps_tncuda_python.yml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
type: string
1313
required: true
1414
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)
15-
release:
1615
pull_request:
1716
paths-ignore:
1817
- .github/**

pennylane_lightning/core/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.38.0-dev2"
19+
__version__ = "0.38.0-dev3"

0 commit comments

Comments
 (0)