Bagatur/fix doc ci (#12529)

This commit is contained in:
Bagatur
2023-10-29 16:15:18 -07:00
committed by GitHub
parent 2424fff3f1
commit 0b4b9e61fc
5 changed files with 23 additions and 14 deletions

View File

@@ -9,6 +9,8 @@ on:
- 'docs/**'
- 'templates/**'
- 'cookbook/**'
- '.github/workflows/_lint.yml'
- '.github/workflows/doc_lint.yml'
workflow_dispatch:
jobs:
@@ -23,12 +25,11 @@ jobs:
run: |
# We should not encourage imports directly from main init file
# Expect for hub
git grep 'from langchain import' {docs,templates,cookbook} | grep -vE 'from langchain import (hub)' && exit 1 || exit 0
git grep 'from langchain import' {docs/docs,templates,cookbook} | grep -vE 'from langchain import (hub)' && exit 1 || exit 0
- name: Run lint
lint:
uses:
./.github/workflows/_lint.yml
with:
working-directory: .
secrets: inherit
working-directory: "."
secrets: inherit