Test if we can cat scanner or not #607
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: Linting | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| UV_VERSION: "0.9.11" | |
| PYTHON_VERSION: "3.12" | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 | |
| with: | |
| version: ${{ env.UV_VERSION }} | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Run type checking for ${{ matrix.project.dir }} | |
| working-directory: ${{ matrix.project.dir }} | |
| run: | | |
| uv run --exact ${{ matrix.project.ty_flags }} ruff format --check --diff | |
| lint: | |
| name: ruff check for ${{ matrix.project.dir }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: | |
| - dir: "." | |
| - dir: "databricks_mcp" | |
| - dir: "integrations/dspy" | |
| - dir: "integrations/llamaindex" | |
| - dir: "integrations/openai" | |
| - dir: "integrations/langchain" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 | |
| with: | |
| version: ${{ env.UV_VERSION }} | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Run type checking for ${{ matrix.project.dir }} | |
| working-directory: ${{ matrix.project.dir }} | |
| run: | | |
| uv run --exact --all-extras ${{ matrix.project.ty_flags }} ruff check --output-format github | |
| ty: | |
| name: typechecking for ${{ matrix.project.dir }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| project: | |
| - dir: "." | |
| - dir: "databricks_mcp" | |
| - dir: "integrations/dspy" | |
| - dir: "integrations/llamaindex" | |
| - dir: "integrations/openai" | |
| - dir: "integrations/langchain" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 | |
| with: | |
| version: ${{ env.UV_VERSION }} | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Run type checking for ${{ matrix.project.dir }} | |
| working-directory: ${{ matrix.project.dir }} | |
| run: | | |
| uv run --exact --all-extras ${{ matrix.project.ty_flags }} ty check --output-format github |