diff --git a/.github/actions/install-main-dependencies/action.yml b/.github/actions/install-main-dependencies/action.yml index 4a3fa5d0..eed9f828 100644 --- a/.github/actions/install-main-dependencies/action.yml +++ b/.github/actions/install-main-dependencies/action.yml @@ -34,7 +34,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 }} @@ -42,7 +42,7 @@ runs: env: CACHE_VERSION: v1 id: optimization-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: optimization-cache key: optimization-cache-${{ inputs.os }}-${{ inputs.python-version }}-${{ env.OPTIMIZATION_HASH }}-${{ env.CACHE_VERSION }} diff --git a/.github/workflows/deploy-code.yml b/.github/workflows/deploy-code.yml index 5f9c9491..ad80409b 100644 --- a/.github/workflows/deploy-code.yml +++ b/.github/workflows/deploy-code.yml @@ -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 deee599d..18b1b341 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -27,10 +27,10 @@ jobs: matrix: 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-finance diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1237063a..35c7f454 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/fin.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/* @@ -209,10 +209,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' @@ -245,7 +245,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 @@ -275,7 +275,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 @@ -288,39 +288,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/f38 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.9 path: /tmp/f39 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.10 path: /tmp/f310 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.11 path: /tmp/f311 - - 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.11 path: /tmp/m311 - - 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