refactor: point to new example paths github workflows (#1868)

<!-- .github/pull_request_template.md -->

## Description
<!--
Please provide a clear, human-generated description of the changes in
this PR.
DO NOT use AI-generated descriptions. We want to understand your thought
process and reasoning.
-->

## Type of Change
<!-- Please check the relevant option -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [x] Code refactoring
- [ ] Performance improvement
- [ ] Other (please specify):

## Screenshots/Videos (if applicable)
<!-- Add screenshots or videos to help explain your changes -->

## Pre-submission Checklist
<!-- Please check all boxes that apply before submitting your PR -->
- [ ] **I have tested my changes thoroughly before submitting this PR**
- [ ] **This PR contains minimal changes necessary to address the
issue/feature**
- [ ] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added necessary documentation (if applicable)
- [ ] All new and existing tests pass
- [ ] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description
- [ ] My commits have clear and descriptive messages

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Hande 2025-12-04 16:18:27 +01:00 committed by GitHub
parent 04aae3852d
commit d4b0e2d6ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 25 deletions

View file

@ -158,7 +158,7 @@ jobs:
python-version: ${{ inputs.python-version }}
- name: Run Simple Examples
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py
simple-examples-baml:
name: Run Simple Examples BAML
@ -196,7 +196,7 @@ jobs:
extra-dependencies: "baml"
- name: Run Simple Examples
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py
graph-tests:
name: Run Basic Graph Tests
@ -226,4 +226,4 @@ jobs:
python-version: ${{ inputs.python-version }}
- name: Run Graph Tests
run: uv run python ./examples/python/code_graph_example.py --repo_path ./cognee/tasks/graph
run: uv run python ./new-examples/custom_pipelines/code_graph_repository_analysis_example.py --repo_path ./cognee/tasks/graph

View file

@ -74,7 +74,7 @@ jobs:
GRAPH_DATABASE_USERNAME: ${{ steps.neo4j.outputs.neo4j-username }}
GRAPH_DATABASE_PASSWORD: ${{ steps.neo4j.outputs.neo4j-password }}
run: |
uv run python examples/database_examples/neo4j_example.py
uv run python new-examples/configurations/database_examples/neo4j_graph_database_configuration.py
run-db-example-kuzu:
name: "Kuzu DB Example Test"
@ -106,7 +106,7 @@ jobs:
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
GRAPH_DATABASE_PROVIDER: "kuzu"
run: |
uv run python examples/database_examples/kuzu_example.py
uv run python new-examples/configurations/database_examples/kuzu_graph_database_configuration.py
run-db-example-pgvector:
name: "PostgreSQL PGVector DB Example Test"
@ -151,4 +151,4 @@ jobs:
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: |
uv run python examples/database_examples/pgvector_example.py
uv run python new-examples/configurations/database_examples/pgvector_postgres_vector_database_configuration.py

View file

@ -24,7 +24,7 @@ jobs:
ENV: 'dev'
LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: uv run python ./examples/python/multimedia_example.py
run: uv run python ./new-examples/demos/multimedia_processing/multimedia_audio_image_processing_example.py
test-eval-example:
name: Run Eval Example
@ -112,7 +112,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/dynamic_steps_example.py
run: uv run python ./new-examples/custom_pipelines/dynamic_steps_resume_analysis_hr_example.py
test-temporal-example:
name: Run Temporal Tests
@ -138,7 +138,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/temporal_example.py
run: uv run python ./new-examples/demos/temporal_awareness_example.py
test-ontology-example:
name: Run Ontology Tests
@ -164,7 +164,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/ontology_demo_example.py
run: uv run python ./new-examples/demos/ontology_reference_vocabulary/ontology_as_reference_vocabulary_example.py
test-agentic-reasoning:
name: Run Agentic Reasoning Tests
@ -190,7 +190,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/agentic_reasoning_procurement_example.py
run: uv run python ./new-examples/custom_pipelines/agentic_reasoning_procurement_example.py
test-memify:
name: Run Memify Example
@ -216,7 +216,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/memify_coding_agent_example.py
run: uv run python ./new-examples/custom_pipelines/memify_coding_agent_rule_extraction_example.py
test-custom-pipeline:
name: Run Custom Pipeline Example
@ -242,7 +242,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/run_custom_pipeline_example.py
run: uv run python ./new-examples/custom_pipelines/custom_cognify_pipeline_example.py
test-permissions-example:
name: Run Permissions Example
@ -268,7 +268,7 @@ jobs:
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
run: uv run python ./examples/python/permissions_example.py
run: uv run python ./new-examples/configurations/permissions_example/user_permissions_and_access_control_example.py
test_docling_add:
name: Run Add with Docling Test
runs-on: macos-15

View file

@ -33,7 +33,7 @@ jobs:
EMBEDDING_MODEL: "gemini/text-embedding-004"
EMBEDDING_DIMENSIONS: "768"
EMBEDDING_MAX_TOKENS: "8076"
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py
test-fastembed:
name: Run Fastembed Test
@ -58,7 +58,7 @@ jobs:
EMBEDDING_MODEL: "sentence-transformers/all-MiniLM-L6-v2"
EMBEDDING_DIMENSIONS: "384"
EMBEDDING_MAX_TOKENS: "256"
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py
test-openrouter:
name: Run OpenRouter Test
@ -83,4 +83,4 @@ jobs:
EMBEDDING_MODEL: "openai/text-embedding-3-large"
EMBEDDING_DIMENSIONS: "3072"
EMBEDDING_MAX_TOKENS: "8191"
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py

View file

@ -101,4 +101,4 @@ jobs:
EMBEDDING_ENDPOINT: "http://localhost:11434/api/embed"
EMBEDDING_DIMENSIONS: "4096"
HUGGINGFACE_TOKENIZER: "Salesforce/SFR-Embedding-Mistral"
run: uv run python ./examples/python/simple_example.py
run: uv run python ./new-examples/demos/simple_default_cognee_pipelines_example.py

View file

@ -7,7 +7,7 @@ on:
- 'cognee/modules/graph/utils/get_graph_from_model.py'
- 'cognee/infrastructure/engine/models/Edge.py'
- 'cognee/tests/unit/interfaces/graph/test_weighted_edges.py'
- 'examples/python/weighted_edges_example.py'
- 'new-examples/demos/weighted_edges_relationships_example.py'
- '.github/workflows/weighted_edges_tests.yml'
pull_request:
branches: [ main, dev ]
@ -15,7 +15,7 @@ on:
- 'cognee/modules/graph/utils/get_graph_from_model.py'
- 'cognee/infrastructure/engine/models/Edge.py'
- 'cognee/tests/unit/interfaces/graph/test_weighted_edges.py'
- 'examples/python/weighted_edges_example.py'
- 'new-examples/demos/weighted_edges_relationships_example.py'
- '.github/workflows/weighted_edges_tests.yml'
env:
@ -128,13 +128,13 @@ jobs:
- name: Test Weighted Edges Example
run: |
uv run python examples/python/weighted_edges_example.py
uv run python new-examples/demos/weighted_edges_relationships_example.py
- name: Verify Visualization File Created
run: |
if [ -f "examples/python/weighted_graph_visualization.html" ]; then
if [ -f "new-examples/demos/weighted_graph_visualization.html" ]; then
echo "✅ Visualization file created successfully"
ls -la examples/python/weighted_graph_visualization.html
ls -la new-examples/demos/weighted_graph_visualization.html
else
echo "❌ Visualization file not found"
exit 1
@ -159,11 +159,11 @@ jobs:
- name: Run Linting on Weighted Edges Files
uses: astral-sh/ruff-action@v2
with:
args: "check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
args: "check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py new-examples/demos/weighted_edges_relationships_example.py"
- name: Run Formatting Check on Weighted Edges Files
uses: astral-sh/ruff-action@v2
with:
args: "format --check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py examples/python/weighted_edges_example.py"
args: "format --check cognee/modules/graph/utils/get_graph_from_model.py cognee/tests/unit/interfaces/graph/test_weighted_edges.py new-examples/demos/weighted_edges_relationships_example.py"