mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-20 14:42:28 +02:00
* We're using restricted GITHUB_TOKENS by default. * This is expected to be a no-op operation for codeql.
38 lines
918 B
YAML
38 lines
918 B
YAML
name: baseline
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "libs/**"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
benchmark:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: libs/langgraph
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: SHA=$(git rev-parse HEAD) && echo "SHA=$SHA" >> $GITHUB_ENV
|
|
- name: Set up Python 3.11
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
python-version: "3.11"
|
|
enable-cache: true
|
|
cache-suffix: "bench"
|
|
- name: Install dependencies
|
|
run: uv sync --group dev
|
|
- name: Run benchmarks
|
|
run: OUTPUT=out/benchmark-baseline.json make -s benchmark
|
|
- name: Save outputs
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
key: ${{ runner.os }}-benchmark-baseline-${{ env.SHA }}
|
|
path: |
|
|
libs/langgraph/out/benchmark-baseline.json
|