Merge pull request #427 from mnot/claude/redbot-memoryhigh-chardet #554
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
| # DO NOT EDIT outside marked project regions — managed by https://github.com/mnot/pyproject-tmpl | |
| name: Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 2 | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: 'true' | |
| # === pyproject-tmpl: start "pre-test" === | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 18 | |
| - name: Cache playwright binaries | |
| uses: actions/cache@v6 | |
| id: playwright-cache | |
| with: | |
| path: | | |
| ~/.cache/ms-playwright | |
| key: cache-playwright-linux-1.22.0 | |
| - name: Install Playwright | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: npx playwright install --with-deps | |
| # === pyproject-tmpl: end "pre-test" === | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache venv | |
| uses: actions/cache@v6 | |
| with: | |
| path: .venv | |
| key: ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ hashFiles('pyproject.toml') }} | |
| - name: Set up venv | |
| run: make venv | |
| - name: Typecheck | |
| run: make typecheck | |
| - name: Lint | |
| run: make lint | |
| - name: Test | |
| run: make test | |
| # === pyproject-tmpl: start "post-test" === | |
| - name: Upload screenshots | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: webui-screenshots | |
| path: fail_*.png | |
| if-no-files-found: ignore | |
| # === pyproject-tmpl: end "post-test" === |