• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

run-llama / workflows-py / 20882219852
81%

Build:
DEFAULT BRANCH: main
Ran 10 Jan 2026 06:01PM UTC
Jobs 3
Files 133
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jan 2026 06:01PM UTC coverage: 87.949% (+0.2%) from 87.777%
20882219852

push

github

web-flow
Add resource nodes to workflow graph export (#269)

* feat: add resource nodes to workflow graph export

Add support for visualizing resource dependencies in workflow graphs:

- Enhanced _Resource class with source location metadata (file, line,
  docstring, unique hash for deduplication)
- Added ResourceDefinition.type_annotation to capture the type from
  Annotated[T, Resource(...)]
- Added WorkflowGraphResourceNode protocol model with full metadata
- Added DrawWorkflowResourceNode class for intermediate representation
- Updated DrawWorkflowEdge to support edge labels (variable names)
- Modified extract_workflow_structure to extract and deduplicate
  resource nodes, connecting them to steps with labeled edges
- Updated Pyvis and Mermaid renderers to display resource nodes
  (hexagon shape, plum color) with metadata tooltips

* test: add tests and example for resource nodes visualization

- Add tests for resource node extraction in test_representation_utils.py
- Add tests for resource rendering in test_drawing.py (Mermaid + Pyvis)
- Add workflow_with_resources fixture with multiple resources
- Add runnable example (examples/visualization/resource_nodes_example.py)
  that generates both Mermaid and Pyvis output with resource nodes

* chore: add changeset for resource nodes feature

* fix: reverse resource edge direction to step -> resource

* refactor: unify DrawWorkflowNode and DrawWorkflowResourceNode

- Merge resource-specific fields into DrawWorkflowNode
- Add to_resource_response_model() for resource serialization
- Keep DrawWorkflowResourceNode as backwards compat alias
- Simplify type annotations in rendering code (remove unions)
- Remove isinstance checks since all nodes are now DrawWorkflowNode

* refactor: simplify _get_clean_node_id to use node_type prefix

* refactor: merge resource_nodes into nodes list

Unify resource nodes with the main nodes list instead of a separate
resource_nodes field. This simplifies the API and rendering code whi... (continued)

97 of 147 new or added lines in 4 files covered. (65.99%)

151 existing lines in 7 files now uncovered.

9677 of 11003 relevant lines covered (87.95%)

0.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
85.98
-0.44% packages/llama-index-workflows/src/workflows/representation_utils.py
41
63.16
-34.71% packages/llama-index-workflows/src/workflows/protocol/__init__.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.5
0.18% tests/test_drawing.py
2
93.9
0.0% src/workflows/protocol/serializable_events.py
4
96.49
-3.51% src/workflows/protocol/__init__.py
8
97.42
-2.58% tests/test_representation_utils.py
14
85.98
-4.14% src/workflows/representation_utils.py
38
83.91
0.0% src/workflows/server/server.py
84
66.08
4.35% src/llama_index/utils/workflow/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 llama-index-workflows - 20882219852.1 10 Jan 2026 06:01PM UTC 93
95.06
GitHub Action Run
2 workflows-dev - 20882219852.2 10 Jan 2026 06:01PM UTC 8
79.63
GitHub Action Run
3 llama-index-utils-workflow - 20882219852.3 10 Jan 2026 06:01PM UTC 33
68.96
GitHub Action Run
Source Files on build 20882219852
  • Tree
  • List 133
  • Changed 15
  • Source Changed 5
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20882219852
  • e53c654b on github
  • Prev Build on main (#20864145856)
  • Next Build on main (#20882252022)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc