Fix type hints in keybert #150
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
| # SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Type check | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths-ignore: | |
| - '**.cff' | |
| - '**.json' | |
| - '**.md' | |
| - '**.rst' | |
| - '**.txt' | |
| - 'docs/**' | |
| pull_request: | |
| branches: | |
| - dev | |
| paths-ignore: | |
| - '**.cff' | |
| - '**.json' | |
| - '**.md' | |
| - '**.rst' | |
| - '**.txt' | |
| - 'docs/**' | |
| # Avoid duplicate runs for the same source branch and repository. | |
| # For pull_request events, uses the source repo name from | |
| # github.event.pull_request.head.repo.full_name; otherwise uses github.repository. | |
| # For push events, uses the branch name from github.ref_name. | |
| # For pull_request events, uses the source branch name from github.head_ref. | |
| # This ensures events for the same repo and branch share the same group, | |
| # and avoids cross-fork collisions when branch names are reused. | |
| concurrency: | |
| group: >- | |
| ${{ github.workflow }}-${{ | |
| github.event.pull_request.head.repo.full_name || github.repository | |
| }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| mypy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.9" | |
| cache: "pip" | |
| - name: Install mypy | |
| run: | | |
| pip install . | |
| pip install mypy | |
| - name: Run mypy | |
| run: mypy pythainlp |