Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable warnings as errors for weekly run in test suite #6217

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
0237e48
Enable warnings as errors globally in test suite
mlxd Sep 4, 2024
124c444
Ensure all warnings are errors in devices
mlxd Sep 4, 2024
65301db
Merge branch 'master' into tests/warning_as_error
mlxd Sep 9, 2024
261e6b1
Add nightly run warnings as errors tests
mlxd Sep 12, 2024
16d4f01
Merge branch 'master' into tests/warning_as_error
mlxd Sep 12, 2024
c7ecbe4
Update pennylane/devices/tests/pytest.ini
mlxd Sep 12, 2024
6c824a7
Update tests/pytest.ini
mlxd Sep 12, 2024
23a9765
Update CL
mlxd Sep 12, 2024
d7099d2
Merge branch 'tests/warning_as_error' of github.com:PennyLaneAI/penny…
mlxd Sep 12, 2024
85d6a4d
Required to false for python warning env var
mlxd Sep 12, 2024
55aa823
Remove pipeline from yml and add PR dispatch
mlxd Sep 12, 2024
ccdeef8
Readd error from warning to all CI runs
mlxd Sep 12, 2024
a904d48
Readd missing secrets
mlxd Sep 12, 2024
37fd0cf
Readd missing secrets again
mlxd Sep 12, 2024
07b1f6c
Readd missing secrets again
mlxd Sep 12, 2024
0dd65a7
Cancel CI [skip-ci]
mlxd Sep 12, 2024
13e31ba
Merge branch 'tests/warning_as_error' of github.com:PennyLaneAI/penny…
mlxd Sep 12, 2024
80292eb
Remove secrets
mlxd Sep 12, 2024
00a9e1c
Migrate location again
mlxd Sep 12, 2024
bb104c1
Disable fail-fast for runs
mlxd Sep 12, 2024
eccbf9a
Migate env-var to inline warning for pytest
mlxd Sep 13, 2024
09f5529
Merge branch 'master' into tests/warning_as_error
mlxd Sep 13, 2024
15417e8
Change warning capitalization
mlxd Sep 13, 2024
6ce1b72
Merge branch 'tests/warning_as_error' of github.com:PennyLaneAI/penny…
mlxd Sep 13, 2024
4591c1b
Once more with env var inclusion
mlxd Sep 13, 2024
872e267
reduce concurrent workers
mlxd Sep 13, 2024
0e70c30
Remove durations
mlxd Sep 13, 2024
a4d90e3
Remove splitting from warning CI
mlxd Sep 13, 2024
786e826
Fix GHA YML syntax error
mlxd Sep 13, 2024
212733f
Attempt to set strategy for sub-action
mlxd Sep 13, 2024
5a41914
Attempt to set strategy for sub-action again
mlxd Sep 13, 2024
0373a52
Move with branch in yaml
mlxd Sep 13, 2024
523235c
Make required item optional
mlxd Sep 13, 2024
07b51b7
Ignore import warnings due to external packages
mlxd Sep 13, 2024
749fa01
Add conditional splitting support when using WAE
mlxd Sep 13, 2024
80b483d
Add fromJson
mlxd Sep 13, 2024
a5de614
Try coerce GHA to accept the matrix values
mlxd Sep 13, 2024
2c0c8dc
Try coerce GHA to accept the matrix values again
mlxd Sep 13, 2024
5f197aa
Try coerce GHA to accept the matrix values again+1
mlxd Sep 13, 2024
124431c
Update .github/workflows/interface-unit-tests.yml
mlxd Sep 13, 2024
6c2ae74
Treat the conditional section as objects with fromJson
mlxd Sep 13, 2024
4adffd8
More coercing
mlxd Sep 13, 2024
144b321
Remove splits when not required
mlxd Sep 13, 2024
6eac2a2
Downgrade py versions
mlxd Sep 13, 2024
7ada97b
Add pandas to avoid import errors in WAE
mlxd Sep 13, 2024
67e79ec
Remove durations and ensure no lightened settings
mlxd Sep 13, 2024
9e1ced3
Ensure continue on collection errors
mlxd Sep 13, 2024
e7463f0
Update .github/workflows/interface-unit-tests.yml
mlxd Sep 13, 2024
d3d0529
Merge branch 'master' into tests/warning_as_error
mlxd Sep 13, 2024
95822bc
Update .github/workflows/interface-unit-tests.yml
mlxd Sep 13, 2024
a746721
Update .github/workflows/interface-unit-tests.yml
mlxd Sep 13, 2024
2d418d2
Update .github/workflows/package_warnings_as_errors.yml
mlxd Sep 13, 2024
ade9049
Update .github/workflows/package_warnings_as_errors.yml
mlxd Sep 13, 2024
9589c9f
Fix durations
mlxd Sep 13, 2024
6f68114
Always include split package
mlxd Sep 13, 2024
12d74b8
reformat string structure
mlxd Sep 13, 2024
b37ab75
Need more output
mlxd Sep 13, 2024
392ec4e
More formatting checks
mlxd Sep 13, 2024
79a80ec
Once more
mlxd Sep 13, 2024
896bca1
Add paren
mlxd Sep 13, 2024
a5bbfe9
JAXIT
mlxd Sep 13, 2024
e9a7c8b
More echo
mlxd Sep 13, 2024
ecc4383
More echo
mlxd Sep 13, 2024
3bf4428
TF group check
mlxd Sep 13, 2024
a44a8db
Multiple groupings
mlxd Sep 13, 2024
3258d2c
More darting with TF tests
mlxd Sep 13, 2024
33495fe
Enable debug logging
mlxd Sep 13, 2024
dd9a24b
Merge branch 'master' into tests/warning_as_error
mlxd Sep 13, 2024
33cbeb2
Enable debug logging+1
mlxd Sep 13, 2024
01df56b
Merge branch 'tests/warning_as_error' of github.com:PennyLaneAI/penny…
mlxd Sep 13, 2024
417b926
Merge branch 'master' into tests/warning_as_error
mlxd Oct 24, 2024
fe928a7
Fix merge errors
mlxd Oct 24, 2024
aff8399
Temp trigger WAE
mlxd Oct 24, 2024
c12b44c
Merge branch 'master' into tests/warning_as_error
mlxd Oct 24, 2024
5201483
Move warning config into pytest_additional_args
mlxd Oct 24, 2024
9691b81
Merge branch 'tests/warning_as_error' of github.com:PennyLaneAI/penny…
mlxd Oct 24, 2024
a70865b
Fix duplicate pytest filter
mlxd Oct 24, 2024
0fbff29
Cancel in progress disabled
mlxd Oct 24, 2024
fc3b52c
Attempt to add ff to matrix strategy
mlxd Oct 25, 2024
0f74ea2
Fix syntax error
mlxd Oct 25, 2024
3fb4868
+1
mlxd Oct 25, 2024
6534b52
Remove runs on attribute
mlxd Oct 25, 2024
dd9dc4c
Readd runner group
mlxd Oct 25, 2024
589adfb
Change boolean value to string
mlxd Oct 25, 2024
2a4451f
eval TF outside conditional
mlxd Oct 25, 2024
1483844
Remove bool string and use contains directly
mlxd Oct 25, 2024
de17cd7
Fix WAE steps
mlxd Oct 25, 2024
01180ec
+1
mlxd Oct 25, 2024
6e37430
Fail fast eval
mlxd Oct 25, 2024
debc1f9
Disable WAE on PRs [skip ci]]
mlxd Oct 25, 2024
79e8c01
Merge branch 'master' into tests/warning_as_error
mlxd Oct 25, 2024
1f36363
Merge branch 'master' into tests/warning_as_error
mlxd Oct 30, 2024
dcaa531
Update .github/workflows/interface-unit-tests.yml
mlxd Oct 30, 2024
6e70178
Simplify fail fast
mlxd Oct 30, 2024
f5b883c
Update .github/workflows/interface-unit-tests.yml
mlxd Nov 8, 2024
2773ab4
Update .github/workflows/interface-unit-tests.yml
mlxd Nov 8, 2024
36a1b67
Merge branch 'master' into tests/warning_as_error
mlxd Nov 8, 2024
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
76 changes: 65 additions & 11 deletions .github/workflows/interface-unit-tests.yml
mlxd marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ on:
required: false
type: boolean
default: false
python_warning_level:
description: Sets the default Python warning level as defined by https://docs.python.org/3/using/cmdline.html#envvar-PYTHONWARNINGS
required: false
type: string
default: 'default'

jobs:
setup-ci-load:
Expand All @@ -66,6 +71,22 @@ jobs:
"default": ["3.10"]
}
EOF
elif [ "${{ inputs.python_warning_level }}" == "error" ];
then
cat >python_versions.json <<-EOF
{
"default": ["3.10"],
"torch-tests": ["3.10"],
"tf-tests": ["3.10"],
"jax-tests": ["3.10"],
"all-interfaces-tests": ["3.10"],
"external-libraries-tests": ["3.10"],
"qcut-tests": ["3.10"],
"qchem-tests": ["3.10"],
"gradients-tests": ["3.10"],
"data-tests": ["3.10"],
"device-tests": ["3.10"] }
mlxd marked this conversation as resolved.
Show resolved Hide resolved
EOF
mlxd marked this conversation as resolved.
Show resolved Hide resolved
else
cat >python_versions.json <<-EOF
{
Expand Down Expand Up @@ -102,6 +123,13 @@ jobs:
"device-tests": 2
}
EOF
elif [ "${{ inputs.python_warning_level }}" == "error" ];
then
cat >matrix_max_parallel.json <<-EOF
{
"default": 1
}
EOF
else
cat >matrix_max_parallel.json <<-EOF
{
Expand All @@ -118,6 +146,18 @@ jobs:
jq . matrix_max_parallel.json
echo "matrix_max_parallel=$(jq -r tostring matrix_max_parallel.json)" >> $GITHUB_OUTPUT

- name: Enable splitting of tests
id: job_split
run: |
if [ "${{ inputs.python_warning_level }}" == "error" ];
then
ENABLE_SPLIT=0
else
ENABLE_SPLIT=1
fi

echo "enable_split=$ENABLE_SPLIT" >> $GITHUB_OUTPUT

- name: Setup Job to Skip
id: jobs_to_skip
env:
Expand All @@ -136,6 +176,7 @@ jobs:
matrix-max-parallel: ${{ steps.max_parallel.outputs.matrix_max_parallel }}
python-version: ${{ steps.python_versions.outputs.python_versions }}
jobs-to-skip: ${{ steps.jobs_to_skip.outputs.jobs_to_skip }}
enable_split: ${{ steps.jobs_to_skip.outputs.enable_split }}

torch-tests:
needs:
Expand Down Expand Up @@ -168,6 +209,7 @@ jobs:
pytest_markers: torch and not qcut and not finite-diff and not param-shift
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'torch.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


autograd-tests:
Expand Down Expand Up @@ -200,6 +242,7 @@ jobs:
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: autograd and not qcut and not finite-diff and not param-shift
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


tf-tests:
Expand All @@ -212,7 +255,8 @@ jobs:
|| fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default
}}
matrix:
group: [1, 2, 3]
group: >-
mlxd marked this conversation as resolved.
Show resolved Hide resolved
${{ needs.setup-ci-load.outputs.enable_split == '1' && fromJSON('[1, 2, 3]') || fromJSON('[1]') }}
python-version: >-
${{
fromJSON(needs.setup-ci-load.outputs.python-version).tf-tests
Expand All @@ -232,12 +276,13 @@ jobs:
install_pennylane_lightning_master: true
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: tf and not qcut and not finite-diff and not param-shift
pytest_additional_args: --splits 3 --group ${{ matrix.group }}
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable_split == '1' && format('--splits {0} --group {1}', '3', matrix.group) || '' }}
pytest_durations_file_path: '.github/workflows/tf_tests_durations.json'
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
additional_pip_packages: ${{ needs.setup-ci-load.outputs.enable_split == '1' && 'pytest-split' || '' }}
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'tf.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


jax-tests:
Expand All @@ -250,7 +295,7 @@ jobs:
|| fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default
}}
matrix:
group: [1, 2, 3, 4, 5]
group: ${{ needs.setup-ci-load.outputs.enable_split == '1' && fromJSON('[1, 2, 3, 4, 5]') || fromJSON('[1]') }}
mudit2812 marked this conversation as resolved.
Show resolved Hide resolved
python-version: >-
${{
fromJSON(needs.setup-ci-load.outputs.python-version).jax-tests
Expand All @@ -270,12 +315,13 @@ jobs:
install_pennylane_lightning_master: true
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: jax and not qcut and not finite-diff and not param-shift
pytest_additional_args: --splits 5 --group ${{ matrix.group }}
pytest_durations_file_path: '.github/workflows/jax_tests_durations.json'
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable_split == '1' && format('--splits {0} --group {1}', '5', matrix.group) || '' }}
pytest_durations_file_path: ${{ needs.setup-ci-load.outputs.enable_split == '1' && '.github/workflows/jax_tests_durations.json' || '' }}
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
additional_pip_packages: ${{ needs.setup-ci-load.outputs.enable_split == '1' && 'pytest-split' || '' }}
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'jax.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


core-tests:
Expand All @@ -288,7 +334,7 @@ jobs:
|| fromJSON(needs.setup-ci-load.outputs.matrix-max-parallel).default
}}
matrix:
group: [1, 2, 3, 4, 5]
group: ${{ needs.setup-ci-load.outputs.enable_split && fromJSON('[1, 2, 3, 4, 5]') || fromJSON('[1]') }}
python-version: >-
${{
fromJSON(needs.setup-ci-load.outputs.python-version).core-tests
Expand All @@ -308,12 +354,13 @@ jobs:
install_pennylane_lightning_master: true
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: core and not qcut and not finite-diff and not param-shift
pytest_additional_args: --splits 5 --group ${{ matrix.group }}
pytest_durations_file_path: '.github/workflows/core_tests_durations.json'
pytest_additional_args: ${{ needs.setup-ci-load.outputs.enable_split == '1' && format('--splits {0} --group {1}', '5', matrix.group ) || '' }}
pytest_durations_file_path: ${{ needs.setup-ci-load.outputs.enable_split == '1' && '.github/workflows/core_tests_durations.json' || '' }}
pytest_store_durations: ${{ inputs.pytest_store_durations }}
additional_pip_packages: pytest-split
additional_pip_packages: ${{ needs.setup-ci-load.outputs.enable_split == '1' && 'pytest-split' || '' }}
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'core.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


all-interfaces-tests:
Expand Down Expand Up @@ -347,6 +394,7 @@ jobs:
pytest_markers: all_interfaces
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'all_interfaces.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


external-libraries-tests:
Expand Down Expand Up @@ -386,6 +434,7 @@ jobs:
additional_pip_packages: pyzx matplotlib stim quimb mitiq pennylane-qiskit ply
requirements_file: ${{ github.event_name == 'schedule' && strategy.job-index == 0 && 'external.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


qcut-tests:
Expand Down Expand Up @@ -419,6 +468,7 @@ jobs:
pytest_markers: qcut
additional_pip_packages: kahypar==1.1.7 opt_einsum
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


qchem-tests:
Expand Down Expand Up @@ -452,6 +502,7 @@ jobs:
pytest_markers: qchem
additional_pip_packages: openfermionpyscf basis-set-exchange
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}

gradients-tests:
needs:
Expand Down Expand Up @@ -486,6 +537,7 @@ jobs:
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: ${{ matrix.config.suite }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


data-tests:
Expand Down Expand Up @@ -519,6 +571,7 @@ jobs:
pytest_markers: data
additional_pip_packages: h5py
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


device-tests:
Expand Down Expand Up @@ -559,6 +612,7 @@ jobs:
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_additional_args: --device=${{ matrix.config.device }} --shots=${{ matrix.config.shots }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}
python_warning_level: ${{ inputs.python_warning_level }}


upload-to-codecov:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/package_warnings_as_errors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test-suite with Python warnings as errors
on:
# Scheduled trigger every Sunday at 2:35am UTC
schedule:
- cron: '35 2 * * 0'
workflow_dispatch:
pull_request:
mlxd marked this conversation as resolved.
Show resolved Hide resolved

concurrency:
group: warnings-as-errors-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
test-warnings-as-errors:
strategy:
fail-fast: false
max-parallel: 1
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
uses: ./.github/workflows/interface-unit-tests.yml
with:
branch: ${{ github.ref }}
skip_ci_test_jobs: 'qcut-tests'
mlxd marked this conversation as resolved.
Show resolved Hide resolved
python_warning_level: 'error'
pipeline_mode: 'warnings'
mlxd marked this conversation as resolved.
Show resolved Hide resolved
run_lightened_ci: false
17 changes: 12 additions & 5 deletions .github/workflows/unit-test.yml
mlxd marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
type: string
default: '3.10'
pipeline_mode:
description: The pipeline mode can be unit-tests, benchmarks, or reference-benchmark
description: The pipeline mode can be unit-tests, benchmarks, reference-benchmark, or warnings
required: false
type: string
default: 'unit-tests'
Expand Down Expand Up @@ -114,6 +114,11 @@ on:
required: false
type: string
default: "False"
python_warning_level:
description: Sets the default Python warning level as defined by https://docs.python.org/3/using/cmdline.html#envvar-PYTHONWARNINGS
required: false
type: string
default: 'default'

jobs:
test:
Expand All @@ -129,7 +134,7 @@ jobs:
repository: PennyLaneAI/pennylane

- name: Determine benchmark name
if: ${{ inputs.pipeline_mode != 'unit-tests' }}
if: ${{ contains(fromJSON('["benchmarks"]'), inputs.pipeline_mode) }}
id: benchmark_name
run: |
job_name="${{ inputs.job_name }}"
Expand All @@ -138,7 +143,7 @@ jobs:
echo "benchmark_name=$_benchmark_name" >> $GITHUB_OUTPUT

- name: Cache reference benchmarks
if: ${{ inputs.pipeline_mode != 'unit-tests' }}
if: ${{ contains(fromJSON('["benchmarks"]'), inputs.pipeline_mode) }}
id: benchmark-cache
uses: actions/cache@v3
with:
Expand All @@ -149,7 +154,7 @@ jobs:
id: continue
run: >-
echo "confirm=${{
contains(fromJSON('["unit-tests", "benchmarks"]'), inputs.pipeline_mode)
contains(fromJSON('["unit-tests", "benchmarks", "warnings"]'), inputs.pipeline_mode)
|| (inputs.pipeline_mode == 'reference-benchmarks'
&& steps.benchmark-cache.outputs.cache-hit != 'true' )}}" >> $GITHUB_OUTPUT

Expand Down Expand Up @@ -180,6 +185,8 @@ jobs:
run: |
if [[ "$PIPELINE_MODE" =~ .*"benchmarks".* ]]; then
echo "args=$PYTEST_BENCHMARKS_ARGS $PYTEST_ADDITIONAL_ARGS" >> $GITHUB_OUTPUT
elif [[ "$PIPELINE_MODE" =~ .*"warnings".* ]]; then
echo "args=$PYTEST_ADDITIONAL_ARGS --continue-on-collection-errors" >> $GITHUB_OUTPUT
mlxd marked this conversation as resolved.
Show resolved Hide resolved
else
echo "args=$PYTEST_COVERAGE_ARGS $PYTEST_PARALLELISE_ARGS $PYTEST_ADDITIONAL_ARGS $PYTEST_DURATIONS_ARGS $PYTEST_STORE_ARGS" >> $GITHUB_OUTPUT
fi
Expand All @@ -193,7 +200,7 @@ jobs:
COV_CORE_DATAFILE: .coverage.eager
TF_USE_LEGACY_KERAS: "1" # sets to use tf-keras (Keras2) instead of keras (Keras3) when running TF tests
# Calling PyTest by invoking Python first as that adds the current directory to sys.path
run: python -m pytest ${{ inputs.pytest_test_directory }} ${{ steps.pytest_args.outputs.args }} ${{ env.PYTEST_MARKER }} --disable-opmath=${{ inputs.disable_new_opmath }}
run: python -m pytest -W ${{ inputs.python_warning_level }} ${{ inputs.pytest_test_directory }} ${{ steps.pytest_args.outputs.args }} ${{ env.PYTEST_MARKER }} --disable-opmath=${{ inputs.disable_new_opmath }}

- name: Upload Durations file as artifact
if: ${{ inputs.pytest_store_durations == true }}
Expand Down
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@

<h3>Documentation 📝</h3>

* Add reporting of test warnings as failures.
[(#6217)](https://github.com/PennyLaneAI/pennylane/pull/6217)

<h3>Bug fixes 🐛</h3>

* Fix a bug where zero-valued JVPs were calculated wrongly in the presence of shot vectors.
Expand Down
2 changes: 1 addition & 1 deletion pennylane/devices/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
markers =
skip_unsupported: skip a test if it uses an operation unsupported on a device
addopts = --benchmark-disable
addopts = --benchmark-disable
1 change: 1 addition & 0 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ matplotlib
requests
rich
tomli # Drop once minimum Python version is 3.11
pandas
9 changes: 2 additions & 7 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ markers =
logging: marks tests for pennylane logging
external: marks tests that require external packages such as matplotlib and PyZX
catalyst: marks tests for catalyst testing (select with '-m "catalyst"')
filterwarnings =
ignore::DeprecationWarning:autograd.numpy.numpy_wrapper
ignore:Casting complex values to real::autograd.numpy.numpy_wrapper
ignore:Casting complex values to real discards the imaginary part:UserWarning:torch.autograd
ignore:Call to deprecated create function:DeprecationWarning
ignore:the imp module is deprecated:DeprecationWarning
error::pennylane.PennyLaneDeprecationWarning
mlxd marked this conversation as resolved.
Show resolved Hide resolved
addopts = --benchmark-disable
xfail_strict=true
filterwarnings =
error::pennylane.PennyLaneDeprecationWarning
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBC

Loading