Closes #43: Add type hints in the code base #252
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: Check format, lint and tests | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Validate pyproject.toml and uv.lock | |
| run: uv lock --locked --offline --no-cache --check | |
| - name: Install dependencies | |
| run: uv sync --locked --all-groups | |
| - name: Run format and lint | |
| run: | | |
| uv run ruff format --check --diff . | |
| uv run ruff check --diff . | |
| - name: Run type checking | |
| run: uv run ty check . | |
| - name: Run Tests | |
| run: uv run pytest |