Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 72784d6

Browse files
authored
Update deprecated actions in workflows (#835)
### Summary A follow-up from Qiskit/qiskit-ibm-runtime#1439. In recent PRs including my PR #821, the CI has been throwing several errors due to old versions of actions that are using node12 or node16 instead of node20. I updated the actions to use the latest versions which should eliminate the CI warnings.
1 parent c7b687c commit 72784d6

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

.github/workflows/ci.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323
name: Run code quality checks
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
- name: Set up Python 3.9
30-
uses: actions/setup-python@v2
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: 3.9
3333
- name: Install dependencies
@@ -45,11 +45,11 @@ jobs:
4545
name: Build documentation
4646
runs-on: ubuntu-latest
4747
steps:
48-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0
5151
- name: Set up Python 3.9
52-
uses: actions/setup-python@v2
52+
uses: actions/setup-python@v5
5353
with:
5454
python-version: 3.9
5555
- name: Install dependencies
@@ -61,7 +61,7 @@ jobs:
6161
- name: Build documentation
6262
run: tox -edocs
6363
- name: Upload documentation
64-
uses: actions/upload-artifact@v2
64+
uses: actions/upload-artifact@v4
6565
with:
6666
name: html_docs
6767
path: docs/_build/html
@@ -80,11 +80,11 @@ jobs:
8080
STREAM_LOG: True
8181
QISKIT_IN_PARALLEL: True
8282
steps:
83-
- uses: actions/checkout@v2
83+
- uses: actions/checkout@v4
8484
with:
8585
fetch-depth: 0
8686
- name: Set up Python ${{ matrix.python-version }}
87-
uses: actions/setup-python@v2
87+
uses: actions/setup-python@v5
8888
with:
8989
python-version: ${{ matrix.python-version }}
9090
- name: Install dependencies
@@ -94,12 +94,12 @@ jobs:
9494
- name: Run unit tests
9595
run: make unit-test-coverage
9696
- name: Report coverage to coveralls.io
97-
uses: coverallsapp/github-action@1.1.3
97+
uses: coverallsapp/github-action@v2
9898
with:
9999
github-token: ${{ secrets.GITHUB_TOKEN }}
100100
flag-name: unit-tests_python${{ matrix.python-version }}-${{ matrix.os }}
101101
parallel: true
102-
path-to-lcov: coverage.lcov
102+
file: coverage.lcov
103103
integration-tests-1:
104104
if: github.event_name == 'push' && github.repository_owner == 'Qiskit'
105105
# only kick-off resource intensive integration tests if unit tests and all basic checks succeeded
@@ -122,11 +122,11 @@ jobs:
122122
STREAM_LOG: True
123123
QISKIT_IN_PARALLEL: True
124124
steps:
125-
- uses: actions/checkout@v2
125+
- uses: actions/checkout@v4
126126
with:
127127
fetch-depth: 0
128128
- name: Set up Python ${{ matrix.python-version }}
129-
uses: actions/setup-python@v2
129+
uses: actions/setup-python@v5
130130
with:
131131
python-version: ${{ matrix.python-version }}
132132
- name: Install dependencies
@@ -157,11 +157,11 @@ jobs:
157157
STREAM_LOG: True
158158
QISKIT_IN_PARALLEL: True
159159
steps:
160-
- uses: actions/checkout@v2
160+
- uses: actions/checkout@v4
161161
with:
162162
fetch-depth: 0
163163
- name: Set up Python ${{ matrix.python-version }}
164-
uses: actions/setup-python@v2
164+
uses: actions/setup-python@v5
165165
with:
166166
python-version: ${{ matrix.python-version }}
167167
- name: Install dependencies
@@ -192,11 +192,11 @@ jobs:
192192
STREAM_LOG: True
193193
QISKIT_IN_PARALLEL: True
194194
steps:
195-
- uses: actions/checkout@v2
195+
- uses: actions/checkout@v4
196196
with:
197197
fetch-depth: 0
198198
- name: Set up Python ${{ matrix.python-version }}
199-
uses: actions/setup-python@v2
199+
uses: actions/setup-python@v5
200200
with:
201201
python-version: ${{ matrix.python-version }}
202202
- name: Install dependencies
@@ -212,7 +212,7 @@ jobs:
212212
runs-on: ubuntu-latest
213213
steps:
214214
- name: Notify coveralls.io that all parallel tests have finished
215-
uses: coverallsapp/github-action@1.1.3
215+
uses: coverallsapp/github-action@v2
216216
with:
217217
github-token: ${{ secrets.GITHUB_TOKEN }}
218218
parallel-finished: true

.github/workflows/deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
matrix:
2828
python-version: [3.9]
2929
steps:
30-
- uses: actions/checkout@v2
31-
- uses: actions/setup-python@v2
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Install deps
3535
run: pip install -U pip setuptools build
3636
- name: Build sdist
3737
run: python3 -m build
38-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3939
with:
4040
path: ./dist/*
4141
- name: Deploy to Pypi

.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: '3.9.12'
2020
- name: Install dependencies
@@ -25,7 +25,7 @@ jobs:
2525
- name: Build docs
2626
run: tox -e docs
2727
- name: Upload artifact
28-
uses: actions/upload-artifact@v2
28+
uses: actions/upload-artifact@v4
2929
with:
3030
name: html_docs
3131
path: docs/_build/html

.github/workflows/e2e-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
STREAM_LOG: True
3838
QISKIT_IN_PARALLEL: True
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
- name: Install dependencies

.github/workflows/integration-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ jobs:
3737
STREAM_LOG: True
3838
QISKIT_IN_PARALLEL: True
3939
steps:
40-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
- name: Set up Python ${{ matrix.python-version }}
44-
uses: actions/setup-python@v2
44+
uses: actions/setup-python@v5
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747
- name: Install dependencies
@@ -70,11 +70,11 @@ jobs:
7070
STREAM_LOG: True
7171
QISKIT_IN_PARALLEL: True
7272
steps:
73-
- uses: actions/checkout@v2
73+
- uses: actions/checkout@v4
7474
with:
7575
fetch-depth: 0
7676
- name: Set up Python ${{ matrix.python-version }}
77-
uses: actions/setup-python@v2
77+
uses: actions/setup-python@v5
7878
with:
7979
python-version: ${{ matrix.python-version }}
8080
- name: Install dependencies
@@ -103,11 +103,11 @@ jobs:
103103
STREAM_LOG: True
104104
QISKIT_IN_PARALLEL: True
105105
steps:
106-
- uses: actions/checkout@v2
106+
- uses: actions/checkout@v4
107107
with:
108108
fetch-depth: 0
109109
- name: Set up Python ${{ matrix.python-version }}
110-
uses: actions/setup-python@v2
110+
uses: actions/setup-python@v5
111111
with:
112112
python-version: ${{ matrix.python-version }}
113113
- name: Install dependencies

.github/workflows/unit-tests-terra-main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
STREAM_LOG: True
2626
QISKIT_IN_PARALLEL: True
2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
3131
- name: Set up Python 3.9
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v5
3333
with:
3434
python-version: 3.9
3535
- name: Install dependencies

0 commit comments

Comments
 (0)