Merge pull request #43 from MLShukai/revert-42-refactor/20260529/scre… #97
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**/*.py" | |
| - "**/*.pyi" | |
| - ".github/workflows/test.yml" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| pull_request: | |
| branches: [main, release/*] | |
| paths: | |
| - "**/*.py" | |
| - "**/*.pyi" | |
| - ".github/workflows/test.yml" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| env: | |
| UV_VERSION: "0.7.20" | |
| jobs: | |
| run_tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest"] | |
| python-version: ["3.12", "3.13", "3.14"] | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: ${{ env.UV_VERSION }} | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| # inputtino-python is fetched from git on Linux and built natively | |
| # against libevdev. See https://github.com/games-on-whales/inputtino/tree/stable/bindings/python | |
| - name: Install inputtino build dependencies (Ubuntu) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| cmake build-essential pkg-config libevdev-dev | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Check installed packages | |
| run: | | |
| echo "Python version:" | |
| uv run python -V | |
| echo "All installed packages:" | |
| uv pip list | |
| - name: Run pytest with coverage | |
| run: | | |
| uv run pytest -v --log-level=INFO --cov |