21
21
name : Lint
22
22
runs-on : ubuntu-latest
23
23
steps :
24
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v3
25
25
- name : Set up Python
26
- uses : actions/setup-python@v2
26
+ uses : actions/setup-python@v4
27
27
with :
28
28
python-version : " 3.10"
29
29
- name : Install dependencies & browsers
34
34
python setup.py bdist_wheel
35
35
python -m playwright install --with-deps
36
36
- name : Lint
37
- uses :
pre-commit/[email protected]
37
+ run : pre-commit run --show-diff-on-failure --color=always --all-files
38
38
- name : Generate APIs
39
39
run : bash scripts/update_api.sh
40
40
- name : Verify generated API is up to date
94
94
browser : chromium
95
95
runs-on : ${{ matrix.os }}
96
96
steps :
97
- - uses : actions/checkout@v2
97
+ - uses : actions/checkout@v3
98
98
- name : Set up Python
99
- uses : actions/setup-python@v2
99
+ uses : actions/setup-python@v4
100
100
with :
101
101
python-version : ${{ matrix.python-version }}
102
102
- name : Install dependencies & browsers
@@ -126,7 +126,7 @@ jobs:
126
126
- name : Test Async API
127
127
if : matrix.os == 'ubuntu-latest'
128
128
run : xvfb-run pytest tests/async --browser=${{ matrix.browser }} --timeout 90
129
- - uses : actions/upload-artifact@v2
129
+ - uses : actions/upload-artifact@v3
130
130
if : failure()
131
131
with :
132
132
name : ${{ matrix.browser }}-${{ matrix.os }}-${{ matrix.python-version }}
@@ -150,9 +150,9 @@ jobs:
150
150
browser-channel : msedge
151
151
runs-on : ${{ matrix.os }}
152
152
steps :
153
- - uses : actions/checkout@v2
153
+ - uses : actions/checkout@v3
154
154
- name : Set up Python
155
- uses : actions/setup-python@v2
155
+ uses : actions/setup-python@v4
156
156
with :
157
157
python-version : " 3.10"
158
158
- name : Install dependencies & browsers
@@ -176,7 +176,7 @@ jobs:
176
176
- name : Test Async API
177
177
if : matrix.os == 'ubuntu-latest'
178
178
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
180
180
if : failure()
181
181
with :
182
182
name : ${{ matrix.browser-channel }}-${{ matrix.os }}
@@ -190,7 +190,7 @@ jobs:
190
190
os : [ubuntu-20.04, macos-10.15, windows-2019]
191
191
runs-on : ${{ matrix.os }}
192
192
steps :
193
- - uses : actions/checkout@v2
193
+ - uses : actions/checkout@v3
194
194
with :
195
195
fetch-depth : 0
196
196
- name : Get conda
0 commit comments