mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-02 17:54:23 +00:00
fix: update run-name and add default inputs in workflow files
This commit is contained in:
parent
d5ca77e065
commit
ea0aa12dc6
4
.github/workflows/_integration_test.yml
vendored
4
.github/workflows/_integration_test.yml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: '🚀 Integration Tests'
|
name: '🚀 Integration Tests'
|
||||||
|
run-name: 'Test ${{ inputs.working-directory }} on Python ${{ inputs.python-version }}'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -11,6 +12,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: "Python version to use"
|
description: "Python version to use"
|
||||||
|
default: "3.11"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -24,7 +26,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
working-directory: ${{ inputs.working-directory }}
|
working-directory: ${{ inputs.working-directory }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: '🚀 Integration Tests (Python ${{ inputs.python-version }})'
|
name: 'Python ${{ inputs.python-version }}'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
7
.github/workflows/_release.yml
vendored
7
.github/workflows/_release.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
name: '🚀 Package Release'
|
name: '🚀 Package Release'
|
||||||
run-name: 'Release ${{ inputs.working-directory }} by @${{ github.actor }}'
|
run-name: 'Release ${{ inputs.working-directory }} ${{ inputs.release-version }}'
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
@ -14,6 +14,11 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
default: 'libs/langchain'
|
default: 'libs/langchain'
|
||||||
|
release-version:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
default: '0.1.0'
|
||||||
|
description: "New version of package being released"
|
||||||
dangerous-nonmaster-release:
|
dangerous-nonmaster-release:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
11
.github/workflows/api_doc_build.yml
vendored
11
.github/workflows/api_doc_build.yml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: '📚 API Documentation Build'
|
name: '📚 API Docs'
|
||||||
|
run-name: 'Build & Deploy API Reference'
|
||||||
# Runs daily or can be triggered manually for immediate updates
|
# Runs daily or can be triggered manually for immediate updates
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -51,7 +52,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Get unique repositories
|
# Get unique repositories
|
||||||
REPOS=$(echo "$REPOS_UNSORTED" | sort -u)
|
REPOS=$(echo "$REPOS_UNSORTED" | sort -u)
|
||||||
|
|
||||||
# Checkout each unique repository
|
# Checkout each unique repository
|
||||||
for repo in $REPOS; do
|
for repo in $REPOS; do
|
||||||
# Validate repository format (allow any org with proper format)
|
# Validate repository format (allow any org with proper format)
|
||||||
@ -59,15 +60,15 @@ jobs:
|
|||||||
echo "Error: Invalid repository format: $repo"
|
echo "Error: Invalid repository format: $repo"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
||||||
|
|
||||||
# Additional validation for repo name
|
# Additional validation for repo name
|
||||||
if [[ ! "$REPO_NAME" =~ ^[a-zA-Z0-9_.-]+$ ]]; then
|
if [[ ! "$REPO_NAME" =~ ^[a-zA-Z0-9_.-]+$ ]]; then
|
||||||
echo "Error: Invalid repository name: $REPO_NAME"
|
echo "Error: Invalid repository name: $REPO_NAME"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking out $repo to $REPO_NAME"
|
echo "Checking out $repo to $REPO_NAME"
|
||||||
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
||||||
done
|
done
|
||||||
|
3
.github/workflows/people.yml
vendored
3
.github/workflows/people.yml
vendored
@ -1,5 +1,6 @@
|
|||||||
name: '👥 LangChain People'
|
name: '👥 LangChain People'
|
||||||
|
run-name: 'Update People Data'
|
||||||
|
# This workflow updates the LangChain People data by fetching the latest information from the LangChain Git
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 14 1 * *"
|
- cron: "0 14 1 * *"
|
||||||
|
4
.github/workflows/run_notebooks.yml
vendored
4
.github/workflows/run_notebooks.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
name: '📝 Run Documentation Notebooks'
|
name: '📓 Validate Documentation Notebooks'
|
||||||
|
run-name: 'Test notebooks in ${{ inputs.working-directory }}'
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
3
.github/workflows/scheduled_test.yml
vendored
3
.github/workflows/scheduled_test.yml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: '⏰ Scheduled Integration Tests'
|
name: '⏰ Scheduled Integration Tests'
|
||||||
|
run-name: 'Run Integration Tests'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows maintainers to trigger the workflow manually in GitHub UI
|
workflow_dispatch: # Allows maintainers to trigger the workflow manually in GitHub UI
|
||||||
@ -161,7 +162,7 @@ jobs:
|
|||||||
|
|
||||||
- name: '🧹 Clean up External Libraries'
|
- name: '🧹 Clean up External Libraries'
|
||||||
# Clean up external libraries to avoid affecting git status check
|
# Clean up external libraries to avoid affecting git status check
|
||||||
run: |
|
run: |
|
||||||
rm -rf \
|
rm -rf \
|
||||||
langchain/libs/partners/google-genai \
|
langchain/libs/partners/google-genai \
|
||||||
langchain/libs/partners/google-vertexai \
|
langchain/libs/partners/google-vertexai \
|
||||||
|
Loading…
Reference in New Issue
Block a user