Skip to content

Commit 9b2d682

Browse files
authored
devops: upgrade GitHub Actions (#1623)
1 parent de0f003 commit 9b2d682

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
name: Lint
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
- name: Set up Python
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: "3.10"
2929
- name: Install dependencies & browsers
@@ -34,7 +34,7 @@ jobs:
3434
python setup.py bdist_wheel
3535
python -m playwright install --with-deps
3636
- name: Lint
37-
uses: pre-commit/action@v2.0.3
37+
run: pre-commit run --show-diff-on-failure --color=always --all-files
3838
- name: Generate APIs
3939
run: bash scripts/update_api.sh
4040
- name: Verify generated API is up to date
@@ -94,9 +94,9 @@ jobs:
9494
browser: chromium
9595
runs-on: ${{ matrix.os }}
9696
steps:
97-
- uses: actions/checkout@v2
97+
- uses: actions/checkout@v3
9898
- name: Set up Python
99-
uses: actions/setup-python@v2
99+
uses: actions/setup-python@v4
100100
with:
101101
python-version: ${{ matrix.python-version }}
102102
- name: Install dependencies & browsers
@@ -126,7 +126,7 @@ jobs:
126126
- name: Test Async API
127127
if: matrix.os == 'ubuntu-latest'
128128
run: xvfb-run pytest tests/async --browser=${{ matrix.browser }} --timeout 90
129-
- uses: actions/upload-artifact@v2
129+
- uses: actions/upload-artifact@v3
130130
if: failure()
131131
with:
132132
name: ${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.python-version }}
@@ -150,9 +150,9 @@ jobs:
150150
browser-channel: msedge
151151
runs-on: ${{ matrix.os }}
152152
steps:
153-
- uses: actions/checkout@v2
153+
- uses: actions/checkout@v3
154154
- name: Set up Python
155-
uses: actions/setup-python@v2
155+
uses: actions/setup-python@v4
156156
with:
157157
python-version: "3.10"
158158
- name: Install dependencies & browsers
@@ -176,7 +176,7 @@ jobs:
176176
- name: Test Async API
177177
if: matrix.os == 'ubuntu-latest'
178178
run: xvfb-run pytest tests/async --browser=chromium --browser-channel=${{ matrix.browser-channel }} --timeout 90
179-
- uses: actions/upload-artifact@v2
179+
- uses: actions/upload-artifact@v3
180180
if: failure()
181181
with:
182182
name: ${{ matrix.browser-channel }}-${{ matrix.os }}
@@ -190,7 +190,7 @@ jobs:
190190
os: [ubuntu-20.04, macos-10.15, windows-2019]
191191
runs-on: ${{ matrix.os }}
192192
steps:
193-
- uses: actions/checkout@v2
193+
- uses: actions/checkout@v3
194194
with:
195195
fetch-depth: 0
196196
- name: Get conda

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
deploy-pypi:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- name: Set up Python
11-
uses: actions/setup-python@v2
11+
uses: actions/setup-python@v4
1212
with:
1313
python-version: 3.9
1414
- name: Install dependencies
@@ -30,7 +30,7 @@ jobs:
3030
os: [ubuntu-latest, windows-latest, macos-latest]
3131
runs-on: ${{ matrix.os }}
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v3
3434
with:
3535
fetch-depth: 0
3636
- name: Get conda

.github/workflows/publish_canary_docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-20.04
1212
if: github.repository == 'microsoft/playwright-python'
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: "3.10"
1919
- name: Install dependencies & browsers
@@ -27,7 +27,7 @@ jobs:
2727
username: playwright
2828
password: ${{ secrets.DOCKER_PASSWORD }}
2929
- name: Set up Docker QEMU for arm64 docker builds
30-
uses: docker/setup-qemu-action@v1
30+
uses: docker/setup-qemu-action@v2
3131
with:
3232
platforms: arm64
3333
- name: publish docker canary

.github/workflows/publish_release_docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
runs-on: ubuntu-20.04
1818
if: github.repository == 'microsoft/playwright-python'
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
- name: Set up Python
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v4
2323
with:
2424
python-version: "3.10"
2525
- uses: azure/docker-login@v1
@@ -28,7 +28,7 @@ jobs:
2828
username: playwright
2929
password: ${{ secrets.DOCKER_PASSWORD }}
3030
- name: Set up Docker QEMU for arm64 docker builds
31-
uses: docker/setup-qemu-action@v1
31+
uses: docker/setup-qemu-action@v2
3232
with:
3333
platforms: arm64
3434
- name: Install dependencies & browsers

.github/workflows/test_docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- focal
2828
- jammy
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v3
3131
- name: Set up Python
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v4
3333
with:
3434
python-version: "3.10"
3535
- name: Install dependencies

0 commit comments

Comments
 (0)