From 9a17bb53eb90620546dd707ae7f2fb81d6789362 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 9 Nov 2020 13:28:40 -0500 Subject: [PATCH] Pin docplex version in CI (#1103) * Pin docplex version in CI The latest docplex version which was released recently breaks the aqua quadratic_program module. This commit pins the docplex version to unblock CI, while we wait for the in-progress aqua PR Qiskit/qiskit-aqua#1420 fixing this to be included in a release. * Use constraints in tutorials job too --- .github/workflows/main.yml | 4 ++-- constraints.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e56a47797452..025e1bc69c36 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,8 +80,8 @@ jobs: run: | set -e git clone https://github.com/Qiskit/qiskit-tutorials - pip install -U jupyter sphinx nbsphinx sphinx_rtd_theme 'matplotlib<3.3.0' qiskit-terra[visualization] cvxpy 'pyscf<1.7.4' - pip install -U . + pip install -c constraints.txt -U jupyter sphinx nbsphinx sphinx_rtd_theme 'matplotlib<3.3.0' qiskit-terra[visualization] cvxpy 'pyscf<1.7.4' + pip install -c constraints.txt -U . sudo apt-get install -y pandoc graphviz - name: Run tutorials run: | diff --git a/constraints.txt b/constraints.txt index c0223b46e7eb..6305fb98b517 100644 --- a/constraints.txt +++ b/constraints.txt @@ -1,3 +1,4 @@ astroid==2.3.3 pylint==2.4.4 cryptography==2.5.0 +docplex==2.15.194