Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache Python deps
uses: actions/cache@v4
with:
path: |
~/.cache/pip
.venv
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Cache uv
uses: actions/cache@v4
with:
path: |
~/.local/share/uv
~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('.uv/config.json') }}
restore-keys: |
${{ runner.os }}-uv-

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: Install dependencies
run: |
# create venv in repo so it can be cached
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
uv sync --dev

- name: Run pre-commit
run: uv run pre-commit run --all-files

- name: Run tests with coverage
run: |
source .venv/bin/activate
uv run pytest --cov --cov-branch --cov-report=xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
50 changes: 0 additions & 50 deletions .github/workflows/coverage_report.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .github/workflows/formatting_and_pytest.yml

This file was deleted.

23 changes: 15 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,53 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-yaml
exclude: ^(tests|docs|examples)/
- id: trailing-whitespace
exclude: ^(tests|docs|examples)/
- id: check-added-large-files
args: [--maxkb=100]
exclude: ^(tests|docs|examples)/
- id: check-ast
- id: check-byte-order-marker
exclude: ^(tests|docs|examples)/
- id: check-builtin-literals
exclude: ^(tests|docs|examples)/
- id: check-case-conflict
exclude: ^(tests|docs|examples)/
- id: check-docstring-first
exclude: ^(tests|docs|examples)/
- id: check-merge-conflict
exclude: ^(tests|docs|examples)/
- id: debug-statements
exclude: ^(tests|docs|examples)/
- id: detect-private-key
exclude: ^(tests|docs|examples)/

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
exclude: ^(tests|docs|examples)/

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff-format
exclude: ^(tests|docs|examples)/

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: [redis==5.0.7]
exclude: ^(tests|docs|examples)/

- repo: https://github.com/PyCQA/bandit
rev: 1.7.9
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
exclude: ^(tests|docs|examples)/
23 changes: 0 additions & 23 deletions Config.md

This file was deleted.

21 changes: 21 additions & 0 deletions Task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Fix this ...

See the class should not be like this,
api checking is not checking in sequence so we not able to capture the bugs
It should be invoke then using checkpointer api, we need to get the data

Lets execute api in below sequence, if any api fails then it should crash the script

# Test Graph APIs
1. /v1/ping/
2. /v1/graph
3. /v1/graph/StateSchema

# Test Graph Run APIs
1. /v1/graph/invoke
2. /v1/graph/stream

# Now checkpointer APIs
Note: using v1/graph/invoke will share thread_id, so we can use that thread_id to test checkpointer apis
1. /v1/threads/{thread_id}/state

Loading