Skip to content

Commit

Permalink
Patch tests after deprecation (#920)
Browse files Browse the repository at this point in the history
**Context:**
Patching stable lightning tests for the latest pennylane.


[stable/latest](https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/10965680477)

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

---------

Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
  • Loading branch information
AmintorDusko and maliasadi authored Sep 24, 2024
1 parent 8a0d3ed commit c607b6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/tests_lqcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ jobs:
git log -1 --format='%H'
git status
- name: Patching tests following deprecation FIXME(remove after v0.39)
if: inputs.lightning-version == 'stable' && inputs.pennylane-version == 'latest'
run: |
pushd tests
grep -rl "default.qubit.legacy" . | xargs sed -i "s|default.qubit.legacy|default.qubit|g";
popd
- name: Run PennyLane-Lightning unit tests
run: |
DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"`
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.39.0-dev31"
__version__ = "0.39.0-dev32"

0 comments on commit c607b6c

Please sign in to comment.