Skip to content

Commit 8030b61

Browse files
Changing package warning as errors additional args (#8705)
**Context:** Bug fix for the issue found in (#8699) : `pytest-benchmark causes a collection failure when using pytest-xdist. Since this is now on by default, we must skip the benchmarking runs explicitly when running the WAE reporter action.` The `--benchmark-disable` flag isn't being passed to the unit tests despite the previous fix. **Description of the Change:** Updating `interface-unit-test` so that `pytest_additional_args` gets used. **Benefits:** The flags passed using `pytest_additional_args` gets used. **Possible Drawbacks:** None. **Related GitHub Issues:** PennyLaneAI/plugin-test-matrix#116 #8699 --------- Co-authored-by: Yushao Chen (Jerry) <[email protected]>
1 parent a436e93 commit 8030b61

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/interface-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
- name: Set pytest arguments for setting warnings level
110110
id: pytest_warning_flags
111111
env:
112-
PYTEST_WARNING_ARGS: -W "${{ inputs.python_warning_level }}" --continue-on-collection-errors
112+
PYTEST_WARNING_ARGS: -W "${{ inputs.python_warning_level }}" --continue-on-collection-errors "${{ inputs.pytest_additional_args }}"
113113
run: |
114114
if [ "${{ inputs.python_warning_level }}" != "default" ]; then
115115
echo "Setting pytest warning flags"

doc/releases/changelog-dev.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ A warning message has been added to :doc:`Building a plugin <../development/plug
517517

518518
<h3>Bug fixes 🐛</h3>
519519

520+
* Update `interface-unit-tests.yml` to use its input parameter `pytest_additional_args` when running pytest.
521+
[(#8705)](https://github.com/PennyLaneAI/pennylane/pull/8705)
522+
520523
* Fixes a bug where in `resolve_work_wire_type` we incorrectly returned a value of `zeroed` if `both work_wires`
521524
and `base_work_wires` were empty, causing an incorrect work wire type.
522525
[(#8718)](https://github.com/PennyLaneAI/pennylane/pull/8718)

0 commit comments

Comments
 (0)