Skip to content

Commit

Permalink
doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Mar 26, 2024
1 parent aee4091 commit a5d5581
Show file tree
Hide file tree
Showing 4 changed files with 180 additions and 195 deletions.
9 changes: 9 additions & 0 deletions .github/actions/python-integration-tests/action.yml
Expand Up @@ -42,3 +42,12 @@ runs:
run: make integration_tests_fast
shell: bash
working-directory: python

- name: Run doctest
env:
LANGCHAIN_TRACING_V2: "true"
LANGCHAIN_API_KEY: ${{ inputs.langchain-api-key }}
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
run: make doctest
shell: bash
working-directory: python
3 changes: 3 additions & 0 deletions python/Makefile
Expand Up @@ -12,6 +12,9 @@ integration_tests:
integration_tests_fast:
poetry run pytest -n auto --durations=10 -v --cov=langsmith --cov-report=term-missing --cov-report=html --cov-config=.coveragerc tests/integration_tests

doctest:
poetry run pytest --doctest-modules langsmith/evaluation/_runner.py

lint:
poetry run ruff .
poetry run mypy .
Expand Down

0 comments on commit a5d5581

Please sign in to comment.