Skip to content

Commit 55e1982

Browse files
committed
ci(e2e): use npx playwright install-deps and install on ubuntu-latest; remove deprecated action; keep repo-local TMPDIR/--basetemp
1 parent 294a605 commit 55e1982

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
tests:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
1313
python-version: ["3.12"]
@@ -17,17 +17,18 @@ jobs:
1717
- uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
20-
- name: Install Python deps
20+
- name: Upgrade pip and install Python deps
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install -e .[dev]
24-
- name: Install Playwright browsers (repo-local, no root)
24+
- name: Install Playwright system dependencies
25+
if: matrix.tier == 'e2e'
26+
run: |
27+
npx playwright install-deps
28+
- name: Install Playwright browsers
2529
if: matrix.tier == 'e2e'
26-
env:
27-
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/dev/test-runs/pw-browsers
28-
TMPDIR: ${{ github.workspace }}/dev/test-runs/tmp
2930
run: |
30-
python -m playwright install chromium
31+
npx playwright install
3132
- name: Prepare repo-local temp directories
3233
run: |
3334
mkdir -p dev/test-runs/{tmp,pytest-tmp,artifacts,downloads,pw-browsers}

0 commit comments

Comments
 (0)