Repository navigation
Merge ggml-org/llama.cpp master 8ca5a8008 #2
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: Python Type-Check | |
| on: | |
| push: | |
| paths: | |
| - '.github/workflows/python-type-check.yml' | |
| - 'ty.toml' | |
| - '**.py' | |
| - '**/requirements*.txt' | |
| # - 'pyrightconfig.json' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/python-type-check.yml' | |
| - 'ty.toml' | |
| - '**.py' | |
| - '**/requirements*.txt' | |
| # - 'pyrightconfig.json' | |
| cache-mode: none | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| python-type-check: | |
| runs-on: ubuntu-slim | |
| name: python type-check | |
| steps: | |
| - name: Check out source repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python environment | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| pip-install: -r requirements/requirements-all.txt ty==0.0.100 | |
| # - name: Type-check with Pyright | |
| # uses: jakebailey/pyright-action@v2 | |
| # with: | |
| # version: 1.1.382 | |
| # level: warning | |
| # warnings: true | |
| - name: Type-check with ty | |
| run: | | |
| ty check --exit-zero-on-warning --output-format=github |