Skip to content

Commit

Permalink
Use a patched qiskit-ibm-runtime when testing Qiskit main (#1389)
Browse files Browse the repository at this point in the history
This change runs the Qiskit main branch tests against a fork of Qiskit
runtime with some `Qiskit<1` code (and the qiskit-ibm-provider
dependency) removed. It can be undone once qiskit-ibm-runtime releases a
version compatible with Qiskit 1.0.
  • Loading branch information
wshanks authored Feb 5, 2024
1 parent b4fc262 commit 00faf96
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ commands =
[testenv:qiskit-main]
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
{[testenv]deps}
git+https://github.com/wshanks/qiskit-ibm-runtime.git@no-provider
commands_pre =
# We must remove qiskit-terra because some dependencies pull it in and it
# conflicts with qiskit main. We must remove qiskit-ibm-provider because it gives
# an import error for qiskit main and it gets automatically imported by qiskit's
# plugin mechanism.
pip uninstall -y qiskit qiskit-terra qiskit-ibm-provider
pip uninstall -y qiskit qiskit-terra
pip install git+https://github.com/Qiskit/qiskit
commands = stestr run {posargs}

Expand Down Expand Up @@ -105,9 +108,12 @@ passenv =
PROD_BUILD
RELEASE_STRING
VERSION_STRING
deps =
{[testenv]deps}
git+https://github.com/wshanks/qiskit-ibm-runtime.git@no-provider
commands_pre =
# See comment for qiskit-main
pip uninstall -y qiskit qiskit-terra qiskit-ibm-provider
pip uninstall -y qiskit qiskit-terra
pip install git+https://github.com/Qiskit/qiskit
commands =
sphinx-build -j auto -T -W --keep-going -b html {posargs} docs/ docs/_build/html
Expand Down

0 comments on commit 00faf96

Please sign in to comment.