diff --git a/.github/workflows/lint-llamaindex.yaml b/.github/workflows/lint-llamaindex.yaml index 86cd6b18f0..622a79df5f 100644 --- a/.github/workflows/lint-llamaindex.yaml +++ b/.github/workflows/lint-llamaindex.yaml @@ -28,6 +28,9 @@ jobs: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true + defaults: + run: + working-directory: ./sdks/llamaindex steps: - name: Checkout Repository uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 @@ -38,17 +41,17 @@ jobs: python-version: "3.13" - name: Install library requirements - run: pip install -r sdks/llamaindex/requirements.txt + run: pip install -r requirements.txt - name: Install test requirements - run: pip install sdks/llamaindex[test] + run: pip install .[test] - name: Run linters run: | - black --check sdks/llamaindex/ - isort --check sdks/llamaindex/ + black --check . + isort --check . - name: Run type-check env: - MYPYPATH: 'sdks/llamaindex/src' - run: mypy --install-types --non-interactive --explicit-package-bases sdks/llamaindex + MYPYPATH: './src' + run: mypy --install-types --non-interactive --cache-dir=.mypy_cache/ -p toolbox_llamaindex_sdk \ No newline at end of file