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

do not raise deprecation warnings as errors on braket #63

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/braket-latest-latest.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/braket-stable-latest.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ Simply add a new plugin to the `workflows` list in [`compile.py`](compile.py), w

* `test_kwargs` (optional): additional arguments to pass to pytest for the given plugin.

* `no_deprecation_error` (optional): set to True to not raise PL deprecation warnings as errors when testing
the latest version of the plugin. By default, PL deprecation warnings are raised as errors.

Once you have added your plugin, run

```console
Expand Down
1 change: 1 addition & 0 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
pip install tensorflow~=$TF_VERSION keras~=$TF_VERSION"""
),
"additional_env_vars": "TF_VERSION: 2.12.0\n TORCH_VERSION: 2.0.0+cpu",
"no_deprecation_error": True,
},
{
"plugin": "quantuminspire",
Expand Down
2 changes: 1 addition & 1 deletion workflow-template-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ jobs:
{%- endfor %}

- name: Run plugin tests
run: python -m pytest plugin_repo/{{ tests_loc }} -W "error::pennylane.PennyLaneDeprecationWarning" --tb=short {%- for kwarg in test_kwargs %} {{ kwarg }} {%- endfor %}
run: python -m pytest plugin_repo/{{ tests_loc }}{% if no_deprecation_error %}{% else %} -W "error::pennylane.PennyLaneDeprecationWarning"{% endif %} --tb=short {%- for kwarg in test_kwargs %} {{ kwarg }} {%- endfor %}

Loading