Fix icon disappearing on page return by resetting state in on_ready() #9
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dev dependencies | |
| run: uv sync | |
| - name: Lint (ruff) | |
| run: uv run ruff check lan_mouse.py tests/ | |
| - name: Format (ruff) | |
| run: uv run ruff format --check . | |
| - name: Type check (pyright) | |
| run: uv run pyright | |
| - name: Run tests | |
| run: uv run pytest tests/ -v |