Skip to content

Commit

Permalink
Merge branch 'main' into pulse_qubit
Browse files Browse the repository at this point in the history
  • Loading branch information
math411 committed Jun 21, 2023
2 parents f7628fb + 15e089b commit 8aa4c61
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
parallel = True
branch = True
source =
braket
src
omit =
**/braket/ir/*
**/braket/device_schema/*
**/braket/schema_common/*
**/braket/task_result/*
**/braket/simulator/*
*/site-packages/braket/*

[paths]
source =
src/braket
.tox/*/lib/python*/site-packages/braket
src
*/site-packages/braket

[report]
show_missing = True
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/dependent-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
dependent:
- amazon-braket-pennylane-plugin-python
- amazon-braket-strawberryfields-plugin-python

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)
2 changes: 1 addition & 1 deletion src/braket/devices/local_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _run_internal_wrap(
inputs: Optional[Dict[str, float]] = None,
*args,
**kwargs,
) -> Union[GateModelQuantumTaskResult, AnnealingQuantumTaskResult]:
) -> Union[GateModelQuantumTaskResult, AnnealingQuantumTaskResult]: # pragma: no cover
"""Wraps _run_interal for pickle dump"""
return self._run_internal(task_specification, shots, inputs=inputs, *args, **kwargs)

Expand Down
3 changes: 2 additions & 1 deletion test/unit_tests/braket/aws/test_aws_quantum_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ def test_name(quantum_job_arn, quantum_job_name, aws_session):


def test_no_arn_setter(quantum_job):
with pytest.raises(AttributeError, match="can't set attribute"):
# Python 3.11 error output differs from Python 3.10 <=
with pytest.raises(AttributeError):
quantum_job.arn = 123


Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ skip_install = true
commands = coverage erase

[testenv:unit-tests]
usedevelop=True
basepython = python3
# {posargs} contains additional arguments specified when invoking tox. e.g. tox -- -s -k test_foo.py
deps =
{[test-deps]deps}
commands =
pytest {posargs} --cov-report term-missing --cov-report html --cov-report xml --cov=braket
pytest {posargs} --cov=braket --cov-report term-missing --cov-report html --cov-report xml --cov-append
extras = test

[testenv:integ-tests]
Expand Down

0 comments on commit 8aa4c61

Please sign in to comment.