diff --git a/.github/actions/install-main-dependencies/action.yml b/.github/actions/install-main-dependencies/action.yml index 70c64492a..07566120f 100644 --- a/.github/actions/install-main-dependencies/action.yml +++ b/.github/actions/install-main-dependencies/action.yml @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2021, 2023. +# (C) Copyright IBM 2021, 2024. # # 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 @@ -33,7 +33,7 @@ runs: env: CACHE_VERSION: v1 id: qiskit-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: qiskit-cache key: qiskit-cache-${{ inputs.os }}-${{ inputs.python-version }}-${{ env.QISKIT_HASH }}-${{ env.CACHE_VERSION }} diff --git a/.github/workflows/deploy-code.yml b/.github/workflows/deploy-code.yml index 5f9c94918..27830026d 100644 --- a/.github/workflows/deploy-code.yml +++ b/.github/workflows/deploy-code.yml @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2021, 2023. +# (C) Copyright IBM 2021, 2024. # # 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 @@ -27,15 +27,15 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install deps run: pip install -U pip setuptools virtualenv wheel - name: Build sdist run: python3 setup.py sdist bdist_wheel - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/* - name: Deploy to Pypi diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4d98b2e3e..d981d58e5 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2021, 2023. +# (C) Copyright IBM 2021, 2024. # # 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 @@ -28,10 +28,10 @@ jobs: os: [ubuntu-latest] python-version: [3.8] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - uses: ./.github/actions/install-optimization diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8324806ea..9f4986763 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2021, 2023. +# (C) Copyright IBM 2021, 2024. # # 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 @@ -45,10 +45,10 @@ jobs: echo -e "\033[31;1;4mConcurrency Group\033[0m" echo -e "$CONCURRENCY_GROUP\n" shell: bash - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -101,7 +101,7 @@ jobs: if: ${{ !cancelled() }} shell: bash - name: Run upload documentation - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: documentation path: docs/_build/html/artifacts/documentation.tar.gz @@ -127,8 +127,8 @@ jobs: - os: windows-latest python-version: '3.10' steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -196,7 +196,7 @@ jobs: mv .coverage ./ci-artifact-data/opt.dat if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 }} shell: bash - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ matrix.os }}-${{ matrix.python-version }} path: ./ci-artifact-data/* @@ -224,10 +224,10 @@ jobs: os: [ubuntu-latest] python-version: [3.8, 3.11] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -260,7 +260,7 @@ jobs: tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts . shell: bash - name: Run upload tutorials - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tutorials${{ matrix.python-version }} path: docs/_build/html/artifacts/tutorials.tar.gz @@ -290,7 +290,7 @@ jobs: if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }} shell: bash - name: Run upload stable tutorials - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: tutorials-stable${{ matrix.python-version }} path: docs/_build/html/artifacts/tutorials.tar.gz @@ -303,39 +303,39 @@ jobs: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.8 path: /tmp/o38 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.9 path: /tmp/o39 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.10 path: /tmp/o310 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.11 path: /tmp/o311 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: macos-latest-3.8 path: /tmp/m38 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: macos-latest-3.10 path: /tmp/m310 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: windows-latest-3.8 path: /tmp/w38 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: windows-latest-3.10 path: /tmp/w310