Skip to content

Commit 3c79c98

Browse files
authored
community: set up CI - lint and unit tests (#2)
* update project urls in pyproject.toml * enable ci * run in 3.13 * update test dep sources
1 parent 48a4f8e commit 3c79c98

File tree

7 files changed

+25
-225
lines changed

7 files changed

+25
-225
lines changed

.github/scripts/check_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33
from typing import Dict
44

5-
LIB_DIRS = ["libs/{lib}"]
5+
LIB_DIRS = ["libs/community"]
66

77
if __name__ == "__main__":
88
files = sys.argv[1:]

.github/workflows/_compile_integration_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
python-version:
2323
- "3.9"
24-
- "3.12"
24+
- "3.13"
2525
name: "uv run pytest -m compile tests/integration_tests"
2626
steps:
2727
- uses: actions/checkout@v4

.github/workflows/_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# so linting on fewer versions makes CI faster.
3131
python-version:
3232
- "3.9"
33-
- "3.12"
33+
- "3.13"
3434
steps:
3535
- uses: actions/checkout@v4
3636

.github/workflows/_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
working-directory:
1313
required: true
1414
type: string
15-
default: 'libs/{lib}'
15+
default: 'libs/community'
1616
dangerous-nonmaster-release:
1717
required: false
1818
type: boolean

.github/workflows/_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
python-version:
2424
- "3.9"
25-
- "3.12"
25+
- "3.13"
2626
name: "make test #${{ matrix.python-version }}"
2727
steps:
2828
- uses: actions/checkout@v4

libs/community/pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ description = "Community contributed LangChain integrations."
2727
readme = "README.md"
2828

2929
[project.urls]
30-
"Source Code" = "https://github.com/langchain-ai/langchain/tree/master/libs/community"
30+
"Source Code" = "https://github.com/langchain-ai/langchain-community/tree/main/libs/community"
3131
"Release Notes" = "https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-community%3D%3D0%22&expanded=true"
32-
repository = "https://github.com/langchain-ai/langchain"
32+
repository = "https://github.com/langchain-ai/langchain-community"
3333

3434
[dependency-groups]
3535
test = [
@@ -79,11 +79,10 @@ typing = [
7979
]
8080

8181
[tool.uv.sources]
82-
langchain-core = { path = "../core", editable = true }
83-
langchain = { path = "../langchain", editable = true }
84-
langchain-tests = { path = "../standard-tests", editable = true }
85-
langchain-text-splitters = { path = "../text-splitters", editable = true }
86-
82+
langchain-core = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/core" }
83+
langchain = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/langchain" }
84+
langchain-tests = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/standard-tests" }
85+
langchain-text-splitters = { git = "https://github.com/langchain-ai/langchain", subdirectory = "libs/text-splitters" }
8786

8887
[tool.ruff]
8988
target-version = "py39"

libs/community/uv.lock

Lines changed: 14 additions & 213 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)