mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 14:26:48 +00:00
infra: small simplify (#26302)
This commit is contained in:
11
.github/scripts/check_diff.py
vendored
11
.github/scripts/check_diff.py
vendored
@@ -16,9 +16,11 @@ LANGCHAIN_DIRS = [
|
|||||||
"libs/experimental",
|
"libs/experimental",
|
||||||
]
|
]
|
||||||
|
|
||||||
# for 0.3rc, we are ignoring core dependents
|
# when set to True, we are ignoring core dependents
|
||||||
# in order to be able to get CI to pass for individual PRs.
|
# in order to be able to get CI to pass for each individual
|
||||||
IGNORE_CORE_DEPENDENTS = True
|
# package that depends on core
|
||||||
|
# e.g. if you touch core, we don't then add textsplitters/etc to CI
|
||||||
|
IGNORE_CORE_DEPENDENTS = False
|
||||||
|
|
||||||
# ignored partners are removed from dependents
|
# ignored partners are removed from dependents
|
||||||
# but still run if directly edited
|
# but still run if directly edited
|
||||||
@@ -133,7 +135,7 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
|
|||||||
|
|
||||||
|
|
||||||
def _get_configs_for_multi_dirs(
|
def _get_configs_for_multi_dirs(
|
||||||
job: str, dirs_to_run: List[str], dependents: dict
|
job: str, dirs_to_run: Dict[str, Set[str]], dependents: dict
|
||||||
) -> List[Dict[str, str]]:
|
) -> List[Dict[str, str]]:
|
||||||
if job == "lint":
|
if job == "lint":
|
||||||
dirs = add_dependents(
|
dirs = add_dependents(
|
||||||
@@ -231,7 +233,6 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
# we now have dirs_by_job
|
# we now have dirs_by_job
|
||||||
# todo: clean this up
|
# todo: clean this up
|
||||||
|
|
||||||
map_job_to_configs = {
|
map_job_to_configs = {
|
||||||
job: _get_configs_for_multi_dirs(job, dirs_to_run, dependents)
|
job: _get_configs_for_multi_dirs(job, dirs_to_run, dependents)
|
||||||
for job in [
|
for job in [
|
||||||
|
12
.github/workflows/_lint.yml
vendored
12
.github/workflows/_lint.yml
vendored
@@ -7,10 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
langchain-location:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: "Relative path to the langchain library folder"
|
|
||||||
python-version:
|
python-version:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -63,14 +59,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
poetry install --with lint,typing
|
poetry install --with lint,typing
|
||||||
|
|
||||||
- name: Install langchain editable
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
if: ${{ inputs.langchain-location }}
|
|
||||||
env:
|
|
||||||
LANGCHAIN_LOCATION: ${{ inputs.langchain-location }}
|
|
||||||
run: |
|
|
||||||
poetry run pip install -e "$LANGCHAIN_LOCATION"
|
|
||||||
|
|
||||||
- name: Get .mypy_cache to speed up mypy
|
- name: Get .mypy_cache to speed up mypy
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
|
12
.github/workflows/_test.yml
vendored
12
.github/workflows/_test.yml
vendored
@@ -7,10 +7,6 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
description: "From which folder this pipeline executes"
|
description: "From which folder this pipeline executes"
|
||||||
langchain-location:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: "Relative path to the langchain library folder"
|
|
||||||
python-version:
|
python-version:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@@ -41,14 +37,6 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: poetry install --with test
|
run: poetry install --with test
|
||||||
|
|
||||||
- name: Install langchain editable
|
|
||||||
working-directory: ${{ inputs.working-directory }}
|
|
||||||
if: ${{ inputs.langchain-location }}
|
|
||||||
env:
|
|
||||||
LANGCHAIN_LOCATION: ${{ inputs.langchain-location }}
|
|
||||||
run: |
|
|
||||||
poetry run pip install -e "$LANGCHAIN_LOCATION"
|
|
||||||
|
|
||||||
- name: Run core tests
|
- name: Run core tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user