mirror of
https://github.com/langchain-ai/docs.git
synced 2026-07-20 19:35:02 -04:00
c19af5e714
Add `fetch-depth: 1` to all `actions/checkout@v6` steps across CI workflows. Full git history isn't needed for any of these jobs — shallow clones cut checkout time and reduce runner disk/network usage.
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: test
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
working-directory:
|
|
required: true
|
|
type: string
|
|
description: "From which folder this pipeline executes"
|
|
python-version:
|
|
required: true
|
|
type: string
|
|
description: "Python version to use"
|
|
|
|
env:
|
|
UV_FROZEN: "true"
|
|
UV_NO_SYNC: "true"
|
|
|
|
jobs:
|
|
build:
|
|
defaults:
|
|
run:
|
|
working-directory: ${{ inputs.working-directory }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
name: "make test #${{ inputs.python-version }}"
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Set up Python ${{ inputs.python-version }} + uv
|
|
uses: "./.github/actions/uv_setup"
|
|
id: setup-python
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: uv sync --group test
|
|
|
|
- name: Run core tests
|
|
shell: bash
|
|
run: |
|
|
make test
|
|
|
|
- name: Run Integration tests
|
|
# Only run this is the working-directory is server
|
|
if: ${{ inputs.working-directory == './libs/server' }}
|
|
shell: bash
|
|
run: |
|
|
make test_integration
|