mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-13 08:35:15 -05:00
chore(llamaindex-ci): use working dir for shell commands (#127)
This commit is contained in:
15
.github/workflows/lint-llamaindex.yaml
vendored
15
.github/workflows/lint-llamaindex.yaml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user