Skip to content

Fix a principal cache invalidation bug #1362

Fix a principal cache invalidation bug

Fix a principal cache invalidation bug #1362

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
env:
UV_VERSION: '0.8.8'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.13'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
with:
version: ${{ env.UV_VERSION }}
# Cache packages per python version, and reuse until lockfile changes
- name: Cache python packages
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
- name: Install dependencies
#if: steps.cache.outputs.cache-hit != 'true'
run: uv sync --no-dev --group test
- name: Run unit tests
run: |
uv run --no-sync pytest -rs tests
- name: Run Playwright end-to-end tests
run: |
sh tests/run-tests.sh