test: e2e #3170
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: Lint on push or pull request | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run lint | |
| run: pnpm run lint | |
| - name: Run Prettier | |
| run: pnpm run format | |
| - name: Run build | |
| run: pnpm run build | |
| - name: Run Typecheck for examples | |
| run: pnpm run typecheck | |
| working-directory: packages/server/examples | |
| - name: Run Python format check | |
| uses: chartboost/ruff-action@v1 | |
| with: | |
| args: "format --check" | |
| src: "python/llama-index-server" | |
| - name: Run Python lint | |
| uses: chartboost/ruff-action@v1 | |
| with: | |
| args: "check" | |
| src: "python/llama-index-server" |