mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
23 lines
501 B
YAML
23 lines
501 B
YAML
---
|
|
name: Documentation Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run import check
|
|
run: |
|
|
# We should not encourage imports directly from main init file
|
|
# Expect for hub
|
|
git grep 'from langchain import' docs/{extras,docs_skeleton,snippets} | grep -vE 'from langchain import (hub)' && exit 1 || exit 0
|