From 3af32277e37f7840a631f2612c73f2272094c42a Mon Sep 17 00:00:00 2001 From: lillian542 Date: Fri, 5 Jan 2024 09:46:18 -0500 Subject: [PATCH] raise error for PL DeprecationWarning in rc tests --- .github/workflows/aqt-latest-rc.yml | 2 +- .github/workflows/braket-latest-rc.yml | 2 +- .github/workflows/cirq-latest-rc.yml | 2 +- .github/workflows/honeywell-latest-rc.yml | 2 +- .github/workflows/ionq-latest-rc.yml | 2 +- .github/workflows/pq-latest-rc.yml | 2 +- .github/workflows/qiskit-latest-rc.yml | 2 +- .github/workflows/quantuminspire-latest-rc.yml | 2 +- .github/workflows/qulacs-latest-rc.yml | 2 +- .github/workflows/rigetti-latest-rc.yml | 2 +- workflow-template-release-candidate.yml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/aqt-latest-rc.yml b/.github/workflows/aqt-latest-rc.yml index cc8c055..a433bc9 100644 --- a/.github/workflows/aqt-latest-rc.yml +++ b/.github/workflows/aqt-latest-rc.yml @@ -57,4 +57,4 @@ jobs: run: | - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/braket-latest-rc.yml b/.github/workflows/braket-latest-rc.yml index 980eec1..d57be8c 100644 --- a/.github/workflows/braket-latest-rc.yml +++ b/.github/workflows/braket-latest-rc.yml @@ -66,4 +66,4 @@ jobs: pl-device-test --device=braket.local.qubit --tb=short --skip-ops -k 'not Sample and not no_0_shots' - name: Run plugin tests - run: python -m pytest plugin_repo/test/unit_tests --tb=short + run: python -m pytest plugin_repo/test/unit_tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/cirq-latest-rc.yml b/.github/workflows/cirq-latest-rc.yml index 05dcc6f..089e479 100644 --- a/.github/workflows/cirq-latest-rc.yml +++ b/.github/workflows/cirq-latest-rc.yml @@ -65,4 +65,4 @@ jobs: pl-device-test --device=cirq.qsim --tb=short --skip-ops --analytic=False --shots=20000 - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/honeywell-latest-rc.yml b/.github/workflows/honeywell-latest-rc.yml index f8e7706..f1c25d7 100644 --- a/.github/workflows/honeywell-latest-rc.yml +++ b/.github/workflows/honeywell-latest-rc.yml @@ -57,4 +57,4 @@ jobs: run: | - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/ionq-latest-rc.yml b/.github/workflows/ionq-latest-rc.yml index ec02d06..230c120 100644 --- a/.github/workflows/ionq-latest-rc.yml +++ b/.github/workflows/ionq-latest-rc.yml @@ -59,4 +59,4 @@ jobs: pl-device-test --device=ionq.simulator --tb=short --skip-ops --shots=10000 - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/pq-latest-rc.yml b/.github/workflows/pq-latest-rc.yml index 2fe331a..83e63c4 100644 --- a/.github/workflows/pq-latest-rc.yml +++ b/.github/workflows/pq-latest-rc.yml @@ -59,4 +59,4 @@ jobs: run: | - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/qiskit-latest-rc.yml b/.github/workflows/qiskit-latest-rc.yml index 1491ed8..e99cb30 100644 --- a/.github/workflows/qiskit-latest-rc.yml +++ b/.github/workflows/qiskit-latest-rc.yml @@ -64,4 +64,4 @@ jobs: pl-device-test --device=qiskit.aer --tb=short --skip-ops --shots=None --device-kwargs backend=aer_simulator_unitary - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short -k 'not test_ibmq.py and not test_runtime.py' + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short -k 'not test_ibmq.py and not test_runtime.py' diff --git a/.github/workflows/quantuminspire-latest-rc.yml b/.github/workflows/quantuminspire-latest-rc.yml index c8eebbf..f7c6eaa 100644 --- a/.github/workflows/quantuminspire-latest-rc.yml +++ b/.github/workflows/quantuminspire-latest-rc.yml @@ -62,4 +62,4 @@ jobs: pl-device-test --device=quantuminspire.qi --tb=short --skip-ops --shots=4096 --device-kwargs backend='QX single-node simulator' - name: Run plugin tests - run: python -m pytest plugin_repo/tests/unit_test --tb=short + run: python -m pytest plugin_repo/tests/unit_test -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/qulacs-latest-rc.yml b/.github/workflows/qulacs-latest-rc.yml index e7429a3..0d8471a 100644 --- a/.github/workflows/qulacs-latest-rc.yml +++ b/.github/workflows/qulacs-latest-rc.yml @@ -60,4 +60,4 @@ jobs: pl-device-test --device=qulacs.simulator --tb=short --skip-ops --shots=20000 - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/.github/workflows/rigetti-latest-rc.yml b/.github/workflows/rigetti-latest-rc.yml index 02fa748..39900a5 100644 --- a/.github/workflows/rigetti-latest-rc.yml +++ b/.github/workflows/rigetti-latest-rc.yml @@ -66,4 +66,4 @@ jobs: pl-device-test --device=rigetti.wavefunction --tb=short --skip-ops --shots=20000 - name: Run plugin tests - run: python -m pytest plugin_repo/tests --tb=short + run: python -m pytest plugin_repo/tests -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short diff --git a/workflow-template-release-candidate.yml b/workflow-template-release-candidate.yml index 2c5db76..319c027 100644 --- a/workflow-template-release-candidate.yml +++ b/workflow-template-release-candidate.yml @@ -80,5 +80,5 @@ jobs: {%- endfor %} - name: Run plugin tests - run: python -m pytest plugin_repo/{{ tests_loc }} --tb=short {%- for kwarg in test_kwargs %} {{ kwarg }} {%- endfor %} + run: python -m pytest plugin_repo/{{ tests_loc }} -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short {%- for kwarg in test_kwargs %} {{ kwarg }} {%- endfor %}