Skip to content

Commit dafb5dc

Browse files
committed
CI: install playwright deps in separate step with retry
1 parent 1149c92 commit dafb5dc

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
restore-keys: |
4141
${{ runner.os }}-playwright-
4242
43+
- name: Install Playwright system dependencies
44+
if: runner.os == 'Linux'
45+
uses: nick-fields/retry@v3
46+
with:
47+
timeout_minutes: 5
48+
max_attempts: 3
49+
command: pip install playwright && playwright install-deps
50+
4351
- name: Install tox
4452
run: pip install tox
4553

@@ -109,6 +117,13 @@ jobs:
109117
restore-keys: |
110118
${{ runner.os }}-playwright-
111119
120+
- name: Install Playwright system dependencies
121+
uses: nick-fields/retry@v3
122+
with:
123+
timeout_minutes: 5
124+
max_attempts: 3
125+
command: pip install playwright && playwright install-deps
126+
112127
- name: Install tox
113128
run: pip install tox
114129

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ allowlist_externals =
1616
npm
1717
npx
1818
commands =
19-
playwright install --with-deps
19+
playwright install
2020
npm install playwright@1.57
2121
npx playwright install chromium
2222
py.test -vv --reactor=asyncio \
@@ -48,7 +48,7 @@ allowlist_externals =
4848
npm
4949
npx
5050
commands =
51-
playwright install --with-deps
51+
playwright install
5252
npm install playwright@1.40
5353
npx playwright install chromium
5454
py.test -vv --reactor=asyncio \
@@ -72,7 +72,7 @@ deps =
7272
twisted==22.8.0
7373
greenlet==3.0.1
7474
commands =
75-
playwright install --with-deps
75+
playwright install
7676
py.test -vv --reactor=asyncio \
7777
--cov-report=term-missing \
7878
--cov-report=xml:coverage-pinned-twisted.xml \

0 commit comments

Comments
 (0)