Remove run_cloud_fake and FakeRuntimeFoo items #11860
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This code is part of Qiskit. | |
| # | |
| # (C) Copyright IBM 2021. | |
| # | |
| # This code is licensed under the Apache License, Version 2.0. You may | |
| # obtain a copy of this license in the LICENSE.txt file in the root directory | |
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | |
| # | |
| # Any modifications or derivative works of this code must retain this | |
| # copyright notice, and modified files need to carry a notice indicating | |
| # that they have been altered from the originals. | |
| name: CI | |
| on: | |
| [ push, pull_request ] | |
| # save resources: cancel redundant workflow runs on the same branch when new commits are pushed | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| code-quality: | |
| if: github.repository_owner == 'Qiskit' | |
| name: Run code quality checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[style]' | |
| - name: Run pre-commit | |
| run: pre-commit run | |
| - uses: pre-commit/action@v3.0.1 | |
| documentation: | |
| if: github.repository_owner == 'Qiskit' | |
| name: Build documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -U tox | |
| pip install nbqa docutils | |
| sudo apt install -y graphviz pandoc | |
| wget https://github.com/vale-cli/vale/releases/download/v2.23.0/vale_2.23.0_Linux_64-bit.tar.gz | |
| mkdir $HOME/bin && tar -xf vale_2.23.0_Linux_64-bit.tar.gz -C $HOME/bin | |
| echo "$HOME/bin" >> $GITHUB_PATH | |
| - name: Lint documentation | |
| run: | | |
| make docs-test | |
| - name: Build documentation | |
| run: tox -edocs | |
| - name: Upload documentation | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: html_docs | |
| path: docs/_build/html | |
| unit-tests: | |
| if: github.repository_owner == 'Qiskit' | |
| # only kick-off test cases when basic code quality checks succeed | |
| needs: [ "code-quality" , "documentation" ] | |
| name: Run unit tests - python${{ matrix.python-version }}-${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| os: [ "macos-latest", "ubuntu-latest", "windows-latest" ] | |
| exclude: | |
| - os: "macos-latest" | |
| python-version: '3.10' | |
| env: | |
| QISKIT_IN_PARALLEL: True | |
| QISKIT_IBM_RUNTIME_LOG_LEVEL: DEBUG | |
| PYTEST_ADDOPTS: "--durations=10" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[test,performance,visualization]' | |
| - name: Run unit tests | |
| run: make unit-test-coverage | |
| - name: Report coverage to coveralls.io | |
| uses: coverallsapp/github-action@v2 | |
| continue-on-error: true | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| flag-name: unit-tests_python${{ matrix.python-version }}-${{ matrix.os }} | |
| parallel: true | |
| file: coverage.lcov | |
| fail-on-error: false | |
| unit-tests-lowest-versions: | |
| name: Run unit tests with lowest versions - python${{ matrix.python-version }}-${{ matrix.os }} | |
| needs: [ "code-quality" , "documentation" ] | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Limit the combinations to the minimal Python version supported and linux. | |
| python-version: [ '3.10' ] | |
| os: [ "ubuntu-latest" ] | |
| env: | |
| QISKIT_IN_PARALLEL: True | |
| QISKIT_IBM_RUNTIME_LOG_LEVEL: DEBUG | |
| PYTEST_ADDOPTS: "--durations=10" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| # scipy is handled as a special case, as it does not provide wheels for our supported Python | |
| # versions until 1.14.1. | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install extremal-python-dependencies==0.1.0 | |
| extremal-python-dependencies pin-dependencies-to-minimum --inplace | |
| perl -pi -e 's/scipy==[0-9.]*/scipy==1.14.1/g' pyproject.toml | |
| pip install -e '.[test,performance,visualization]' | |
| - name: Run unit tests | |
| run: make unit-test-coverage | |
| integration-tests: | |
| if: ${{github.event_name == 'push' && github.repository_owner == 'Qiskit' && !contains(github.ref, 'gh-readonly-queue') }} | |
| # only kick-off resource intensive integration tests if unit tests and all basic checks succeeded | |
| needs: [ "unit-tests" ] | |
| name: Run integration tests - ${{ matrix.environment }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| # avoid cancellation of in-progress jobs if any matrix job fails | |
| fail-fast: false | |
| matrix: | |
| python-version: [ '3.10' ] | |
| os: [ "ubuntu-latest" ] | |
| environment: ["ibm-cloud-production" ] | |
| environment: ${{ matrix.environment }} | |
| env: | |
| QISKIT_IBM_TOKEN: ${{ secrets.QISKIT_IBM_TOKEN }} | |
| QISKIT_IBM_URL: ${{ secrets.QISKIT_IBM_URL }} | |
| QISKIT_IBM_INSTANCE: ${{ secrets.QISKIT_IBM_INSTANCE }} | |
| QISKIT_IBM_QPU: ${{ secrets.QISKIT_IBM_QPU }} | |
| QISKIT_IN_PARALLEL: True | |
| QISKIT_IBM_RUNTIME_LOG_LEVEL: DEBUG | |
| PYTEST_ADDOPTS: "-v -s --durations=0" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e '.[test,performance]' | |
| - name: Run integration tests | |
| run: make integration-test | |
| tests-finished: | |
| if: github.repository_owner == 'Qiskit' | |
| name: Submit code coverage metrics | |
| needs: [ unit-tests ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Notify coveralls.io that all parallel tests have finished | |
| uses: coverallsapp/github-action@v2 | |
| continue-on-error: true | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true | |
| fail-on-error: false |