Skip to content

Commit

Permalink
standard-tests: ci pipeline (#27923)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Nov 5, 2024
1 parent c3b7556 commit a8c473e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 7 deletions.
47 changes: 46 additions & 1 deletion libs/standard-tests/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions libs/standard-tests/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[build-system]
requires = [ "poetry-core",]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain-standard-tests"
version = "0.3.0"
description = "Standard tests for LangChain implementations"
authors = [ "Erick Friis <[email protected]>",]
authors = ["Erick Friis <[email protected]>"]
readme = "README.md"
repository = "https://github.com/langchain-ai/langchain"
license = "MIT"
Expand All @@ -25,14 +25,18 @@ httpx = "^0.27.0"
syrupy = "^4"

[tool.ruff.lint]
select = [ "E", "F", "I", "T201",]
select = ["E", "F", "I", "T201"]

[tool.coverage.run]
omit = [ "tests/*",]
omit = ["tests/*"]

[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config --durations=5 -vv"
markers = [ "requires: mark tests as requiring a specific library", "scheduled: mark tests to run in scheduled testing", "compile: mark placeholder test used to compile integration tests without running them",]
markers = [
"requires: mark tests as requiring a specific library",
"scheduled: mark tests to run in scheduled testing",
"compile: mark placeholder test used to compile integration tests without running them",
]
asyncio_mode = "auto"

[tool.poetry.group.test]
Expand All @@ -50,6 +54,14 @@ optional = true
[tool.poetry.group.test.dependencies]
pytest-asyncio = "^0.23.7"

[[tool.poetry.group.test.dependencies.numpy]]
version = "^1.24.0"
python = "<3.12"

[[tool.poetry.group.test.dependencies.numpy]]
version = "^1.26.0"
python = ">=3.12"

[tool.poetry.group.test_integration.dependencies]

[tool.poetry.group.codespell.dependencies]
Expand Down
Empty file.
7 changes: 7 additions & 0 deletions libs/standard-tests/tests/integration_tests/test_compile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest


@pytest.mark.compile
def test_placeholder() -> None:
"""Used for compiling integration tests without running any real tests."""
pass
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def vectorstore(self) -> VectorStore:
return InMemoryVectorStore(embedding=embeddings)


class TestAysncInMemoryVectorStore(AsyncReadWriteTestSuite):
class TestAsyncInMemoryVectorStore(AsyncReadWriteTestSuite):
@pytest.fixture
async def vectorstore(self) -> VectorStore:
embeddings = self.get_embeddings()
Expand Down

0 comments on commit a8c473e

Please sign in to comment.