Skip to content

Commit 0fd77c5

Browse files
committed
add third-party tests github action
1 parent c3cec6f commit 0fd77c5

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.github/workflows/third-party.yml

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

0 commit comments

Comments
 (0)