Simplify front end error UI #153
Workflow file for this run
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: Code quality and tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| - name: Run pre-commit | |
| uses: pre-commit/action@v3.0.1 | |
| code-checks: | |
| name: Test - Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -Im pip install tox tox-gh-actions | |
| - name: Run tests | |
| run: | | |
| tox | |
| ui-checks: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./ui | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js 18 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "18" | |
| - name: Install Node.js dependencies | |
| run: npm ci --no-option --no-audit --progress=false | |
| - name: Run tests | |
| run: npm run test | |
| - name: Build error UI | |
| run: npm run build |