Skip to content

Commit 8e0b4e1

Browse files
authored
ci(langchain): Added auto lint and integration test config (#73)
This PR adds CI workflows for linting and integration tests to the Langchain SDK. Linting is failing due to type checking errors in the SDK (to be fixed separately). Integration tests are failing and need updates to match the latest SDK code (also to be fixed separately).
1 parent 322efbe commit 8e0b4e1

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

integration.cloudbuild.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
steps:
16+
- id: Install library requirements
17+
name: 'python:${_VERSION}'
18+
args:
19+
- install
20+
- '-r'
21+
- 'sdks/langchain/requirements.txt'
22+
- '--user'
23+
entrypoint: pip
24+
- id: Install test requirements
25+
name: 'python:${_VERSION}'
26+
args:
27+
- install
28+
- 'sdks/langchain[test]'
29+
- '--user'
30+
entrypoint: pip
31+
- id: Run integration tests
32+
name: 'python:${_VERSION}'
33+
env:
34+
- TOOLBOX_URL=$_TOOLBOX_URL
35+
args:
36+
- '-c'
37+
- >-
38+
python -m pytest sdks/langchain/tests/
39+
entrypoint: /bin/bash
40+
options:
41+
logging: CLOUD_LOGGING_ONLY
42+
substitutions:
43+
_VERSION: '3.13'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
langchain-core==0.3.21
22
PyYAML==6.0.2
33
pydantic==2.10.2
4-
aiohttp==3.11.7
4+
aiohttp==3.11.7

0 commit comments

Comments
 (0)