Merge pull request #48 from dealfluence/dependabot/npm_and_yarn/node/… #490
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install xmllint (libxml2-utils) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxml2-utils | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "python/uv.lock" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install Dependencies | |
| working-directory: ./python | |
| run: uv sync --all-extras --dev | |
| - name: Lint (Ruff) | |
| working-directory: ./python | |
| run: | | |
| uv run ruff check . | |
| uv run ruff format --check . | |
| - name: Type Check (Mypy) | |
| working-directory: ./python | |
| run: uv run mypy src | |
| - name: Run Tests | |
| working-directory: ./python | |
| run: uv run pytest | |
| node-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ["22.x", "24.x"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install xmllint (libxml2-utils) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxml2-utils | |
| - name: Install uv (Required for TS/Python Consistency Framework) | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "python/uv.lock" | |
| - name: Set up Python | |
| run: uv python install 3.12 | |
| - name: Install Python Dependencies | |
| working-directory: ./python | |
| run: uv sync --all-extras --dev | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| working-directory: ./node | |
| run: npm install | |
| - name: Build and Test | |
| working-directory: ./node | |
| run: | | |
| npm run build | |
| npm test | |
| langchain-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "langchain/uv.lock" | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install Dependencies | |
| working-directory: ./langchain | |
| run: uv sync --group dev --group test | |
| - name: Lint & Format Check (Ruff) | |
| working-directory: ./langchain | |
| run: | | |
| uv run ruff check langchain_adeu tests | |
| uv run ruff format --check langchain_adeu tests | |
| - name: Type Check (Mypy) | |
| working-directory: ./langchain | |
| run: uv run mypy langchain_adeu | |
| - name: Run Tests | |
| working-directory: ./langchain | |
| run: uv run pytest |