|
| 1 | +name: Third-Party Tests |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + pull_request: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + types: |
| 9 | + - labeled |
| 10 | + |
| 11 | +env: |
| 12 | + RUSTFLAGS: "--cfg uuid_unstable" |
| 13 | + |
| 14 | +jobs: |
| 15 | + langchain-core: |
| 16 | + name: Test langchain-core |
| 17 | + runs-on: ubuntu-latest |
| 18 | + if: > |
| 19 | + (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'third-party-tests')) || |
| 20 | + github.event_name == 'workflow_dispatch' |
| 21 | + steps: |
| 22 | + - name: Checkout uuid-utils |
| 23 | + uses: actions/checkout@v4 |
| 24 | + |
| 25 | + - name: Setup Python |
| 26 | + uses: actions/setup-python@v5 |
| 27 | + with: |
| 28 | + python-version: "3.13" |
| 29 | + |
| 30 | + - name: Install Rust |
| 31 | + uses: dtolnay/rust-toolchain@stable |
| 32 | + |
| 33 | + - name: Build and install uuid-utils from source |
| 34 | + run: | |
| 35 | + pip install maturin |
| 36 | + maturin build --release --out dist |
| 37 | + pip install uuid_utils --no-index --find-links dist --force-reinstall |
| 38 | +
|
| 39 | + - name: Checkout langchain-core |
| 40 | + uses: actions/checkout@v4 |
| 41 | + with: |
| 42 | + repository: langchain-ai/langchain |
| 43 | + path: langchain |
| 44 | + sparse-checkout: libs/core |
| 45 | + sparse-checkout-cone-mode: false |
| 46 | + |
| 47 | + - name: Install uv |
| 48 | + uses: astral-sh/setup-uv@v5 |
| 49 | + |
| 50 | + - name: Run langchain-core tests |
| 51 | + run: | |
| 52 | + cd langchain/libs/core |
| 53 | + make tests || echo "Some tests failed, but continuing to report results" |
| 54 | +
|
| 55 | + langsmith-sdk: |
| 56 | + name: Test langsmith SDK |
| 57 | + runs-on: ubuntu-latest |
| 58 | + if: > |
| 59 | + (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'third-party-tests')) || |
| 60 | + github.event_name == 'workflow_dispatch' |
| 61 | + steps: |
| 62 | + - name: Checkout uuid-utils |
| 63 | + uses: actions/checkout@v4 |
| 64 | + |
| 65 | + - name: Setup Python |
| 66 | + uses: actions/setup-python@v5 |
| 67 | + with: |
| 68 | + python-version: "3.13" |
| 69 | + |
| 70 | + - name: Install Rust |
| 71 | + uses: dtolnay/rust-toolchain@stable |
| 72 | + |
| 73 | + - name: Build and install uuid-utils from source |
| 74 | + run: | |
| 75 | + pip install maturin |
| 76 | + maturin build --release --out dist |
| 77 | + pip install uuid_utils --no-index --find-links dist --force-reinstall |
| 78 | +
|
| 79 | + - name: Checkout langsmith-sdk |
| 80 | + uses: actions/checkout@v4 |
| 81 | + with: |
| 82 | + repository: langchain-ai/langsmith-sdk |
| 83 | + path: langsmith-sdk |
| 84 | + sparse-checkout: python |
| 85 | + sparse-checkout-cone-mode: false |
| 86 | + |
| 87 | + - name: Install uv |
| 88 | + uses: astral-sh/setup-uv@v5 |
| 89 | + |
| 90 | + - name: Run langsmith-sdk tests |
| 91 | + run: | |
| 92 | + cd langsmith-sdk/python |
| 93 | + make tests || echo "Some tests failed, but continuing to report results" |
0 commit comments