fix: playwright tests after render-engine migration #1017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Playwright Tests | |
| # https://devblogs.microsoft.com/python/announcing-playwright-for-python-reliable-end-to-end-testing-for-the-web/ | |
| # https://github.com/marketplace/actions/run-playwright-tests | |
| on: | |
| push: | |
| branches: | |
| - gh-pages | |
| pull_request: | |
| branches: | |
| - gh-pages | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Install dependencies | |
| run: | | |
| uv sync --extra dev | |
| uv run playwright install --with-deps chromium | |
| - name: Run Tests | |
| run: | | |
| uv run python -m pytest |