forked from tmc/langchaingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into merge-upstream-0324
- Loading branch information
Showing
456 changed files
with
23,518 additions
and
3,891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# These are supported funding model platforms | ||
github: tmc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: yarn | ||
cache-dependency-path: 'docs/package-lock.json' | ||
|
||
- name: Install dependencies | ||
working-directory: docs | ||
run: yarn install --frozen-lockfile | ||
- name: Build website | ||
working-directory: docs | ||
run: yarn build | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: 'docs/build' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ All types of contributions are encouraged and valued. See the [Table of Contents | |
## Code of Conduct | ||
|
||
This project and everyone participating in it is governed by the | ||
[langchaingo Code of Conduct](/CODE_OF_CONDUCT.md). | ||
[langchaingo Code of Conduct](CODE_OF_CONDUCT.md). | ||
By participating, you are expected to uphold this code. Please report unacceptable behavior | ||
to <[email protected]>. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ test: | |
go test ./... | ||
|
||
.PHONY: lint | ||
lint: | ||
lint: lint-deps | ||
golangci-lint run --color=always --sort-results ./... | ||
|
||
.PHONY: lint-exp | ||
|
@@ -22,6 +22,18 @@ lint-fix: | |
lint-all: | ||
golangci-lint run --color=always --sort-results ./... | ||
|
||
.PHONY: lint-deps | ||
lint-deps: | ||
@command -v golangci-lint >/dev/null 2>&1 || { \ | ||
echo >&2 "golangci-lint not found. Installing..."; \ | ||
go install github.com/golangci/golangci-lint/cmd/[email protected]; \ | ||
} | ||
|
||
.PHONY: docs | ||
docs: | ||
@echo "Generating documentation..." | ||
$(MAKE) -C docs build | ||
|
||
.PHONY: test-race | ||
test-race: | ||
go run test -race ./... | ||
|
@@ -45,3 +57,8 @@ clean-lint-cache: | |
build-examples: | ||
for example in $(shell find ./examples -mindepth 1 -maxdepth 1 -type d); do \ | ||
(cd $$example; echo Build $$example; go mod tidy; go build -o /dev/null) || exit 1; done | ||
|
||
.PHONY: add-go-work | ||
add-go-work: | ||
go work init . | ||
go work use -r . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.