Skip to content

Commit

Permalink
move to use tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Jun 7, 2024
1 parent ec91473 commit b25d84f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/braket-latest-pl-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,4 @@ jobs:
df -h
- name: Run PennyLane device integration tests
run: |
if ! [ -x "$(command -v pl-device-test)" ]; then
echo 'Error: Version of PennyLane does not provide device integration tests.' >&2
else
pl-device-test --device=braket.local.qubit --tb=short --skip-ops --shots=20000 -k 'not no_0_shots'
pl-device-test --device=braket.local.qubit --tb=short --skip-ops -k 'not Sample and not no_0_shots'
fi
tox -e pennylane-device-tests
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ commands =
pytest test/integ_tests {posargs}
extras = test

[testenv:pennylane-device-tests]
# {posargs} contains additional arguments specified when invoking tox. e.g. tox -- -s -k test_foo.py
deps =
{[test-deps]deps}
commands =
pl-device-test --device=braket.local.qubit --tb=short --skip-ops --shots=20000 -k 'not no_0_shots'
pl-device-test --device=braket.local.qubit --tb=short --skip-ops -k 'not Sample and not no_0_shots'
extras = test

[testenv:linters]
basepython = python3
skip_install = true
Expand Down

0 comments on commit b25d84f

Please sign in to comment.