Skip to content

Commit

Permalink
Install Playwright in GitHub Actions, refs #43
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 13, 2024
1 parent a6e1c6c commit 9a5840e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
name: Configure pip caching
cache: pip
cache-dependency-path: setup.py
- name: Cache Playwright browsers
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
path: ~/.cache/ms-playwright/
key: ${{ runner.os }}-browsers
- name: Install dependencies
run: |
pip install -e '.[test]'
pip install -e '.[test,playwright]'
playwright install
pip install "datasette${{ matrix.datasette-version }}"
- name: Run tests
run: |
Expand Down

0 comments on commit 9a5840e

Please sign in to comment.