chore(llamaindex-ci): use working dir for shell commands (#127)

This commit is contained in:
Twisha Bansal
2024-12-12 10:21:23 +05:30
committed by GitHub
parent 827d845759
commit 7bb0a13766

View File

@@ -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