diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b74b6d..cd2c003 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: |