Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
37d54e4
Adding nightly RC builds
runora95 Feb 18, 2026
2eed0fb
Auto update version from '0.45.0-dev18' to '0.45.0-dev19'
ringo-but-quantum Feb 18, 2026
d8fe40a
Fix indentation
runora95 Feb 18, 2026
fb1d155
typo
runora95 Feb 18, 2026
f5a431d
fix names
runora95 Feb 18, 2026
e6685fb
fix names 2
runora95 Feb 18, 2026
b55f443
fix branches
runora95 Feb 18, 2026
8f3b740
true
runora95 Feb 18, 2026
6a79203
fix path
runora95 Feb 18, 2026
c2b7283
trigger catalyst
runora95 Feb 19, 2026
541573b
concurrency
runora95 Feb 19, 2026
335eb98
change concurrency
runora95 Feb 19, 2026
83d4204
run catalyst workflow
runora95 Feb 19, 2026
574b61b
checkout
runora95 Feb 19, 2026
ec3bbdf
Trigger Build
runora95 Feb 19, 2026
25b0ec4
change token
runora95 Feb 19, 2026
d9cb869
Trigger Build
runora95 Feb 20, 2026
c45245a
Trigger Build
runora95 Feb 20, 2026
d77c57e
Auto update version from '0.45.0-dev19' to '0.45.0-dev20'
ringo-but-quantum Feb 20, 2026
a94ddf9
Trigger Build
runora95 Feb 23, 2026
e7227da
Trigger Build
runora95 Feb 23, 2026
bcf290a
Trigger Build
runora95 Feb 23, 2026
193e501
Trigger Build
runora95 Feb 23, 2026
2234e8e
Auto update version from '0.45.0-dev20' to '0.45.0-dev21'
ringo-but-quantum Feb 23, 2026
ac4aa5b
use workflow file name
runora95 Feb 24, 2026
65b915a
cip false'
runora95 Feb 24, 2026
aa508d4
rmv concurrency
runora95 Feb 24, 2026
3b7f684
chng conc group name
runora95 Feb 24, 2026
c0ada13
Merge branch 'master' into sc-111638-rc-nightly
runora95 Feb 24, 2026
3ca05cd
conc name branch
runora95 Feb 24, 2026
0a2b9f9
reduce builds
runora95 Feb 24, 2026
8b5ca7f
Trigger Build
runora95 Feb 24, 2026
3b01506
Auto update version from '0.45.0-dev21' to '0.45.0-dev22'
ringo-but-quantum Feb 24, 2026
0e40beb
rmv if and add work disp
runora95 Feb 24, 2026
348a932
github.workflow conc
runora95 Feb 24, 2026
e56a188
run id concurrency
runora95 Feb 24, 2026
cdbd92d
set conc group
runora95 Feb 24, 2026
d1dba9f
adding workflow to conc group
runora95 Feb 24, 2026
57a6a86
change wklfw name
runora95 Feb 24, 2026
502489f
check conc with prs
runora95 Feb 24, 2026
486d079
other wheels
runora95 Feb 24, 2026
58329ae
rmv comments
runora95 Feb 24, 2026
84c9a15
run other builds
runora95 Feb 24, 2026
8281be0
adding workflow name
runora95 Feb 24, 2026
2be77d0
cleanup inputs
runora95 Feb 25, 2026
9cfcba5
add needs
runora95 Feb 25, 2026
85336c4
cleanup
runora95 Feb 26, 2026
063e989
add schedule to ifs
runora95 Feb 26, 2026
2dacb11
check event name
runora95 Feb 26, 2026
6d40596
cleanup
runora95 Feb 26, 2026
de88efb
cleanup again
runora95 Feb 26, 2026
98899ab
Merge branch 'master' into sc-111638-rc-nightly
runora95 Feb 26, 2026
a090b8e
rmv comment
runora95 Feb 26, 2026
9aa31f6
fix checkout branch
runora95 Feb 26, 2026
d0a5da1
rmv defaults
runora95 Feb 26, 2026
764a084
updates
runora95 Mar 2, 2026
34dc4dd
Auto update version from '0.45.0-dev22' to '0.45.0-dev23'
ringo-but-quantum Mar 2, 2026
78077d4
Merge branch 'master' into sc-111638-rc-nightly
runora95 Mar 3, 2026
9089de9
change rc branch pattern
runora95 Mar 3, 2026
b59838b
rmv schedule if
runora95 Mar 3, 2026
b40aaf3
fix typos and regex
runora95 Mar 4, 2026
0eac947
fix path
runora95 Mar 4, 2026
1b38a1f
cleanup setup build matrix
runora95 Mar 4, 2026
94c2194
cleanup setup build matrix
runora95 Mar 4, 2026
cbfef09
Update .github/workflows/upload-nightly-rc-release.yml
runora95 Mar 4, 2026
c966b35
Update .github/workflows/upload-nightly-rc-release.yml
runora95 Mar 4, 2026
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
49 changes: 49 additions & 0 deletions .github/workflows/set_nightly_version_rc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2025 Xanadu Quantum Technologies Inc.

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
This module bumps the PennyLane development version by one unit.
"""

import os
import re

version_file_path = os.path.join(os.path.dirname(__file__), "../../pennylane_lightning/core/_version.py")

assert os.path.isfile(version_file_path)

with open(version_file_path, "r+", encoding="UTF-8") as f:
lines = f.readlines()

version_line = lines[-1]
assert "__version__ = " in version_line
pattern = r"(\d+).(\d+).(\d+)-rc(\d+)"
match = re.search(pattern, version_line)
if match:
# Case 1: Version has RC suffix
major, minor, bug, rc = match.groups()
replacement = f'__version__ = "{major}.{minor}.{bug}-rc{int(rc)+1}"\n'
else:
# Case 2: Version has no RC suffix
base_pattern = r"(\d+).(\d+).(\d+)"
base_match = re.search(base_pattern, version_line)
assert base_match, "Version string must be in format X.Y.Z or X.Y.Z-rcN"
major, minor, bug = base_match.groups()
replacement = f'__version__ = "{major}.{minor}.{bug}-rc0"\n'

lines[-1] = replacement

f.seek(0)
f.writelines(lines)
f.truncate()
146 changes: 146 additions & 0 deletions .github/workflows/upload-nightly-rc-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
name: Build nightly Lightning RC releases for TestPyPI

on:
schedule:
# Run every weekday at 5:50 EDT (cron is in UTC)
- cron: "50 9 * * 1-5"
workflow_dispatch:
push:

concurrency:
group: nightly-rc-release-${{ github.ref }}
cancel-in-progress: true

jobs:
setup-rc:
name: Setup the release
runs-on: ubuntu-24.04
outputs:
rc_branch: ${{ steps.check_rc.outputs.rc_branch }}
branch_exists: ${{ steps.check_rc.outputs.branch_exists }}
steps:
- name: Checkout Lightning repo
uses: actions/checkout@v4
with:
ref: master

# Sets up Python environment
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

# Ensure setuptools is up-to-date for pyproject.toml processing
- name: Install latest setuptools
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools

- name: Check for rc branch
id: check_rc
run: |
VERSION=$(python setup.py --version)
IFS=. read MAJ MIN PAT <<< "${VERSION%-dev[0-9]*}"
RC_BRANCH="v${MAJ}.$((MIN-1)).${PAT}-rc0"
if git ls-remote --exit-code origin "refs/heads/$RC_BRANCH"; then
echo "branch_exists=true" >> $GITHUB_OUTPUT
echo "rc_branch=$RC_BRANCH" >> $GITHUB_OUTPUT
echo "Found rc branch: $RC_BRANCH"
else
echo "branch_exists=true" >> $GITHUB_OUTPUT
fi

- name: Checkout Lightning repo
if: ${{ steps.check_rc.outputs.branch_exists == 'true' }}
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.NIGHTLY_VERSION_UPDATE_DEPLOY_KEY }}
ref: ${{ steps.check_rc.outputs.rc_branch }}

- name: Bump rc version
if: ${{ steps.check_rc.outputs.branch_exists == 'true' }}
run: |
echo "rc_branch is ${{ steps.check_rc.outputs.rc_branch }}"
python $GITHUB_WORKSPACE/.github/workflows/set_nightly_version_rc.py
# git config --global user.email '${{ secrets.AUTO_UPDATE_VERSION_RINGO_EMAIL }}'
# git config --global user.name "ringo-but-quantum"
# git add $GITHUB_WORKSPACE/pennylane/_version.py
# git commit -m "[no ci] bump nightly version"
# git push

build-linux-aarch64-cuda:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_linux_aarch64_cuda.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-linux-x86_64:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_linux_x86_64.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-linux-x86_64-cuda:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_linux_x86_64_cuda.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-linux-aarch64:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_linux_aarch64.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-macos-arm64:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_macos_arm64.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-windows-x86_64:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_win_x86_64.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-windows-x86_64_rocm:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_linux_x86_64_rocm.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

build-noarch:
needs: setup-rc
if: ${{ needs.setup-rc.outputs.branch_exists == 'true' }}
uses: ./.github/workflows/wheel_noarch.yml
with:
branch: ${{ needs.setup-rc.outputs.rc_branch }}

check-wheel-uploads:
# needs: [build-linux-aarch64-cuda, build-linux-x86_64, build-linux-x86_64-cuda, build-linux-aarch64, build-macos-arm64, build-windows-x86_64, build-windows-x86_64_rocm, build-noarch]
name: Check wheel uploads
runs-on: ubuntu-24.04

steps:
- name: Checkout Lightning repo
uses: actions/checkout@v4
with:
ref: master

- name: Check for uploaded wheels
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
# Check if any wheel artifacts were uploaded
git config user.name "GitHub Actions Bot"
git config user.email "<>"
gh workflow run "Build Release Branch Nightly for TestPyPI" --repo PennyLaneAI/catalyst --ref sc-111637-sync-rc

10 changes: 9 additions & 1 deletion .github/workflows/wheel_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_linux_aarch64-${{ github.ref }}
group: wheel_linux_aarch64-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -108,6 +114,8 @@ jobs:
steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Restoring cached dependencies
id: kokkos-cache
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_linux_aarch64_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_linux_aarch64_cu12-${{ github.ref }}
group: wheel_linux_aarch64_cu12-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -47,6 +53,8 @@ jobs:
steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Install Python 3.12
uses: actions/setup-python@v5
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_linux_x86_64-${{ github.ref }}
group: wheel_linux_x86_64-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -120,6 +126,8 @@ jobs:

- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Copy cached libraries
if: steps.kokkos-cache.outputs.cache-hit == 'true'
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_linux_x86_64_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_linux_x86_64_cu12-${{ github.ref }}
group: wheel_linux_x86_64_cu12-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -52,6 +58,8 @@ jobs:
steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Install dependencies (AlmaLinux)
if: ${{ (matrix.container_img == 'quay.io/pypa/manylinux_2_28_x86_64') }}
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_linux_x86_64_rocm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_linux_x86_64_rocm-${{ github.ref }}
group: wheel_linux_x86_64_rocm-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -123,6 +129,8 @@ jobs:

- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Copy cached libraries
if: steps.kokkos-cache.outputs.cache-hit == 'true'
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_macos_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

env:
MACOSX_DEPLOYMENT_TARGET: 13.0

concurrency:
group: wheel_macos_arm64-${{ github.ref }}
group: wheel_macos_arm64-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -52,6 +58,8 @@ jobs:
steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- uses: actions/setup-python@v5
name: Install Python
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/wheel_noarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ on:
release:
types: [published]
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
default: master

concurrency:
group: wheel_noarch-${{ github.ref }}
group: wheel_noarch-${{ github.ref }}-${{ inputs.branch }}
cancel-in-progress: true

jobs:
Expand All @@ -39,6 +45,8 @@ jobs:
steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- uses: actions/setup-python@v5
with:
Expand Down
Loading
Loading