Add more type annotations. #159
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] | |
| env: | |
| FORCE_COLOR: 1 | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| os: [ubuntu-24.04] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # Retrieve some git history, which will hopefully include the last release tag | |
| # and enable us to generate better version numbers. | |
| fetch-depth: 256 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Linux dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libattr1-dev libfuse3-dev fuse3 pkg-config gcc | |
| - name: Build | |
| run: uv sync --locked | |
| - name: Lint (ruff) | |
| run: uv run ruff check | |
| - name: Lint (format) | |
| run: uv run ruff format --diff | |
| - name: Type check (mypy) | |
| run: uv run mypy . | |
| - name: Type check (pyright) | |
| run: uv run pyright | |
| - name: Run tests | |
| run: uv run pytest -v -rs test/ | |
| - name: Build docs | |
| run: uv run sphinx-build -b html rst doc/html |