mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-20 06:35:46 +02:00
2390d6f940
Bumps the minor-and-patch group with 1 update: [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/setup-python` from 6.2.0 to 6.3.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/setup-python/releases">actions/setup-python's releases</a>.</em></p> <blockquote> <h2>v6.3.0</h2> <h2>What's Changed</h2> <h3>Enhancement</h3> <ul> <li>Add RHEL support and include Linux distro in cache keys by <a href="https://github.com/priyagupta108"><code>@priyagupta108</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1323">actions/setup-python#1323</a></li> <li>Fix pip cache error handling on Windows by <a href="https://github.com/priyagupta108"><code>@priyagupta108</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1040">actions/setup-python#1040</a></li> </ul> <h3>Dependency update</h3> <ul> <li>Upgrade minimatch from 3.1.2 to 3.1.5 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1281">actions/setup-python#1281</a></li> <li>Upgrade actions dependencies by <a href="https://github.com/gowridurgad"><code>@gowridurgad</code></a> with <a href="https://github.com/Copilot"><code>@Copilot</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1303">actions/setup-python#1303</a></li> <li>Upgrade <code>@actions/cache</code> to 5.1.0, log cache write denied by <a href="https://github.com/jasongin"><code>@jasongin</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1324">actions/setup-python#1324</a></li> <li>Upgrade dependency versions and test workflow configuration by <a href="https://github.com/HarithaVattikuti"><code>@HarithaVattikuti</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/1322">actions/setup-python#1322</a></li> </ul> <h3>Documentation</h3> <ul> <li>Update advanced-usage.md by <a href="https://github.com/Dunky-Z"><code>@Dunky-Z</code></a> in <a href="https://redirect.github.com/actions/setup-python/pull/811">actions/setup-python#811</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/gowridurgad"><code>@gowridurgad</code></a> with <a href="https://github.com/Copilot"><code>@Copilot</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-python/pull/1303">actions/setup-python#1303</a></li> <li><a href="https://github.com/jasongin"><code>@jasongin</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-python/pull/1324">actions/setup-python#1324</a></li> <li><a href="https://github.com/Dunky-Z"><code>@Dunky-Z</code></a> made their first contribution in <a href="https://redirect.github.com/actions/setup-python/pull/811">actions/setup-python#811</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/setup-python/compare/v6...v6.3.0">https://github.com/actions/setup-python/compare/v6...v6.3.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/setup-python/commit/ece7cb06caefa5fff74198d8649806c4678c61a1"><code>ece7cb0</code></a> Fix pip cache error handling on Windows. (<a href="https://redirect.github.com/actions/setup-python/issues/1040">#1040</a>)</li> <li><a href="https://github.com/actions/setup-python/commit/1d18d7af5f767c1259ede05a0a5bcc30f3dcf1cf"><code>1d18d7a</code></a> Update advanced-usage.md (<a href="https://redirect.github.com/actions/setup-python/issues/811">#811</a>)</li> <li><a href="https://github.com/actions/setup-python/commit/d2b357a6a3a3687dd6781a416c0d24fcfd68660e"><code>d2b357a</code></a> Update dependency versions and test workflow configuration (<a href="https://redirect.github.com/actions/setup-python/issues/1322">#1322</a>)</li> <li><a href="https://github.com/actions/setup-python/commit/8f639b1e75c1048640734b2bb46e22cecf136982"><code>8f639b1</code></a> Merge pull request <a href="https://redirect.github.com/actions/setup-python/issues/1324">#1324</a> from jasongin/update-actions-cache-5.1.0</li> <li><a href="https://github.com/actions/setup-python/commit/6731c2ba87f530c26324d128c8fdd53499a4d4b0"><code>6731c2b</code></a> Resolve high-severity audit issues</li> <li><a href="https://github.com/actions/setup-python/commit/0cb1a84326b90186fcd211036c65b42819794c87"><code>0cb1a84</code></a> Add RHEL support and include Linux distro in cache keys (<a href="https://redirect.github.com/actions/setup-python/issues/1323">#1323</a>)</li> <li><a href="https://github.com/actions/setup-python/commit/dc6eab6194394e0119523369788b507096f923e2"><code>dc6eab6</code></a> Update dist</li> <li><a href="https://github.com/actions/setup-python/commit/6f4b74bfa2f520a380a620de3615c0dac427f4d3"><code>6f4b74b</code></a> Strict equality</li> <li><a href="https://github.com/actions/setup-python/commit/fa8bde1a9cc6347d06948d66bcd68c598b79eaea"><code>fa8bde1</code></a> Bump <code>@actions/cache</code> to 5.1.0, log cache write denied</li> <li><a href="https://github.com/actions/setup-python/commit/c8813ba1bc76ebf779b911ad8ffccbf2e449cb48"><code>c8813ba</code></a> Upgrade <a href="https://github.com/actions"><code>@actions</code></a> dependencies and update licenses (<a href="https://redirect.github.com/actions/setup-python/issues/1303">#1303</a>)</li> <li>Additional commits viewable in <a href="https://github.com/actions/setup-python/compare/a309ff8b426b58ec0e2a45f0f869d46889d02405...ece7cb06caefa5fff74198d8649806c4678c61a1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
199 lines
6.2 KiB
YAML
199 lines
6.2 KiB
YAML
---
|
|
name: CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
# If another push to the same PR or branch happens while this workflow is still running,
|
|
# cancel the earlier run in favor of the next run.
|
|
#
|
|
# There's no point in testing an outdated version of the code. GitHub only allows
|
|
# a limited number of job runners to be active at the same time, so it's better to cancel
|
|
# pointless jobs early so that more useful jobs can run sooner.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
python: ${{ steps.filter.outputs.python || 'true' }}
|
|
deps: ${{ steps.filter.outputs.deps || 'true' }}
|
|
sdk_py: ${{ steps.filter.outputs.sdk_py || 'true' }}
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4
|
|
if: github.event_name != 'workflow_dispatch'
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
python:
|
|
- 'libs/langgraph/**'
|
|
- 'libs/sdk-py/**'
|
|
- 'libs/cli/**'
|
|
- 'libs/checkpoint/**'
|
|
- 'libs/checkpoint-sqlite/**'
|
|
- 'libs/checkpoint-postgres/**'
|
|
- 'libs/checkpoint-conformance/**'
|
|
- 'libs/prebuilt/**'
|
|
deps:
|
|
- '**/pyproject.toml'
|
|
- '**/uv.lock'
|
|
sdk_py:
|
|
- 'libs/sdk-py/**'
|
|
# The integration suite runs the local langgraph core inside the
|
|
# server (see libs/sdk-py/integration/Dockerfile), so any core
|
|
# change is now exercised end-to-end and should trigger it.
|
|
- 'libs/langgraph/**'
|
|
|
|
lint:
|
|
needs: changes
|
|
name: cd ${{ matrix.working-directory }}
|
|
strategy:
|
|
matrix:
|
|
working-directory:
|
|
[
|
|
"libs/langgraph",
|
|
"libs/sdk-py",
|
|
"libs/cli",
|
|
"libs/checkpoint",
|
|
"libs/checkpoint-sqlite",
|
|
"libs/checkpoint-postgres",
|
|
"libs/checkpoint-conformance",
|
|
"libs/prebuilt",
|
|
]
|
|
if: needs.changes.outputs.python == 'true' || needs.changes.outputs.deps == 'true'
|
|
uses: ./.github/workflows/_lint.yml
|
|
with:
|
|
working-directory: ${{ matrix.working-directory }}
|
|
secrets: inherit
|
|
|
|
test:
|
|
needs: changes
|
|
name: cd ${{ matrix.working-directory }}
|
|
strategy:
|
|
matrix:
|
|
working-directory:
|
|
[
|
|
"libs/cli",
|
|
"libs/checkpoint",
|
|
"libs/checkpoint-sqlite",
|
|
"libs/checkpoint-postgres",
|
|
"libs/checkpoint-conformance",
|
|
"libs/prebuilt",
|
|
"libs/sdk-py",
|
|
]
|
|
if: needs.changes.outputs.python == 'true' || needs.changes.outputs.deps == 'true'
|
|
uses: ./.github/workflows/_test.yml
|
|
with:
|
|
working-directory: ${{ matrix.working-directory }}
|
|
secrets: inherit
|
|
|
|
# NOTE: we're testing langgraph separately because it requires a different matrix
|
|
test-langgraph:
|
|
needs: changes
|
|
if: needs.changes.outputs.python == 'true' || needs.changes.outputs.deps == 'true'
|
|
name: "cd libs/langgraph"
|
|
uses: ./.github/workflows/_test_langgraph.yml
|
|
secrets: inherit
|
|
|
|
check-sdk-methods:
|
|
needs: changes
|
|
if: needs.changes.outputs.python == 'true'
|
|
name: "Check SDK methods matching"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Set up Python
|
|
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Run check_sdk_methods script
|
|
run: python .github/scripts/check_sdk_methods.py
|
|
|
|
check-schema:
|
|
needs: changes
|
|
if: needs.changes.outputs.python == 'true'
|
|
name: "Check CLI schema hasn't changed #${{ matrix.python-version }}"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version:
|
|
- "3.13"
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: ./.github/actions/uv_setup
|
|
with:
|
|
python-version: "3.13"
|
|
cache-suffix: "schema-check-cli"
|
|
working-directory: libs/cli
|
|
- name: Install CLI dependencies
|
|
run: |
|
|
cd libs/cli
|
|
uv sync
|
|
- name: Generate schema and check for changes
|
|
run: |
|
|
cd libs/cli
|
|
# Create a temporary copy of the current schema
|
|
cp schemas/schema.json schemas/schema.current.json
|
|
# Generate new schema
|
|
uv run python generate_schema.py
|
|
# Compare the new schema with the original
|
|
if ! diff -q schemas/schema.json schemas/schema.current.json > /dev/null; then
|
|
echo "Error: Langgraph.json configuration schema has changed. Please run 'uv run python generate_schema.py' in the libs/cli directory and commit the changes."
|
|
diff schemas/schema.json schemas/schema.current.json
|
|
exit 1
|
|
fi
|
|
echo "Schema check passed - no changes detected"
|
|
|
|
integration-test:
|
|
needs: changes
|
|
if: needs.changes.outputs.python == 'true' || needs.changes.outputs.deps == 'true'
|
|
name: CLI integration test
|
|
uses: ./.github/workflows/_integration_test.yml
|
|
secrets: inherit
|
|
|
|
sdk-py-integration-test:
|
|
needs: changes
|
|
if: needs.changes.outputs.sdk_py == 'true'
|
|
name: "sdk-py integration test"
|
|
uses: ./.github/workflows/_sdk_integration_test.yml
|
|
secrets: inherit
|
|
|
|
ci_success:
|
|
name: "CI Success"
|
|
needs:
|
|
[
|
|
lint,
|
|
test,
|
|
test-langgraph,
|
|
check-sdk-methods,
|
|
check-schema,
|
|
integration-test,
|
|
sdk-py-integration-test,
|
|
]
|
|
if: |
|
|
always()
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
JOBS_JSON: ${{ toJSON(needs) }}
|
|
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
|
|
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
|
|
steps:
|
|
- name: "CI Success"
|
|
run: |
|
|
echo $JOBS_JSON
|
|
echo $RESULTS_JSON
|
|
echo "Exiting with $EXIT_CODE"
|
|
exit $EXIT_CODE
|