diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cff885d01..7280494a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,8 +33,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -c constraints.txt -e . - pip install -U -c constraints.txt -r requirements-dev.txt + pip install -c constraints.txt -r requirements-dev.txt -e . - name: Run black run: make style - name: Run lint @@ -91,8 +90,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -c constraints.txt -e . - pip install -U -c constraints.txt -r requirements-dev.txt + pip install -c constraints.txt -r requirements-dev.txt -e . - name: Run unit tests run: make unit-test-coverage - name: Report coverage to coveralls.io @@ -134,8 +132,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run integration tests 1 run: make integration-test-1 integration-tests-2: @@ -170,8 +167,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run integration tests 2 run: make integration-test-2 integration-tests-3: @@ -206,8 +202,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run integration tests 3 run: make integration-test-3 tests-finished: @@ -220,4 +215,4 @@ jobs: uses: coverallsapp/github-action@1.1.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} - parallel-finished: true \ No newline at end of file + parallel-finished: true diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 79f3370bf..2b3e4f3d3 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -47,7 +47,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run e2e tests - run: make e2e-test \ No newline at end of file + run: make e2e-test diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 8884cdec7..3e82b750a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -47,8 +47,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run integration tests 1 run: make integration-test-1 integration-tests-2: @@ -81,8 +80,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - pip install -r requirements-dev.txt + pip install -c constraints.txt -e . -r requirements-dev.txt - name: Run integration tests 2 run: make integration-test-2 integration-tests-3: @@ -118,4 +116,4 @@ jobs: pip install -e . pip install -r requirements-dev.txt - name: Run integration tests 3 - run: make integration-test-3 \ No newline at end of file + run: make integration-test-3 diff --git a/.github/workflows/unit-tests-terra-main.yml b/.github/workflows/unit-tests-terra-main.yml index 2d8c4d661..0337490e6 100644 --- a/.github/workflows/unit-tests-terra-main.yml +++ b/.github/workflows/unit-tests-terra-main.yml @@ -18,7 +18,7 @@ on: jobs: unit-tests-latest-qiskit-terra: if: github.repository_owner == 'Qiskit' - name: Run unit tests with latest code of qiskit-terra + name: Run unit tests with latest code of Qiskit runs-on: "ubuntu-latest" env: LOG_LEVEL: DEBUG @@ -35,10 +35,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -c constraints.txt -e . - pip install -U -c constraints.txt -r requirements-dev.txt - pip install -U git+https://github.com/Qiskit/qiskit-terra.git + # Install all in one go to force pip's resolver to avoid invalid states. + pip install -c constraints.txt -e . -r requirements-dev.txt git+https://github.com/Qiskit/qiskit.git - name: Run tests # running unit tests against latest (non-released) code of qiskit-terra gives a basic level # of confidence that the integration between qiskit-ibm-provider and qiskit-terra works - run: make unit-test \ No newline at end of file + run: make unit-test