test: Add a few more examples to the workflow.
This commit is contained in:
parent
9206d8536b
commit
88cc7af4d7
1 changed files with 38 additions and 15 deletions
53
.github/workflows/examples_tests.yml
vendored
53
.github/workflows/examples_tests.yml
vendored
|
|
@ -85,8 +85,8 @@ jobs:
|
||||||
run: uv run python ./cognee/tests/tasks/descriptive_metrics/neo4j_metrics_test.py
|
run: uv run python ./cognee/tests/tasks/descriptive_metrics/neo4j_metrics_test.py
|
||||||
|
|
||||||
|
|
||||||
test-multiple-examples:
|
test-dynamic-steps-metrics:
|
||||||
name: Run Multiple Example Scripts
|
name: Run Dynamic Steps Example
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
|
|
@ -97,7 +97,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
|
||||||
- name: Run Dynamic Steps Example
|
- name: Run Dynamic Steps Tests
|
||||||
env:
|
env:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
LLM_MODEL: ${{ secrets.LLM_MODEL }}
|
LLM_MODEL: ${{ secrets.LLM_MODEL }}
|
||||||
|
|
@ -110,6 +110,18 @@ jobs:
|
||||||
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
||||||
run: uv run python ./examples/python/dynamic_steps_example.py
|
run: uv run python ./examples/python/dynamic_steps_example.py
|
||||||
|
|
||||||
|
test-temporal-example:
|
||||||
|
name: Run Temporal Tests
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cognee Setup
|
||||||
|
uses: ./.github/actions/cognee_setup
|
||||||
|
with:
|
||||||
|
python-version: '3.11.x'
|
||||||
|
|
||||||
- name: Run Temporal Example
|
- name: Run Temporal Example
|
||||||
env:
|
env:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
|
@ -123,6 +135,18 @@ jobs:
|
||||||
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
||||||
run: uv run python ./examples/python/temporal_example.py
|
run: uv run python ./examples/python/temporal_example.py
|
||||||
|
|
||||||
|
test-ontology-example:
|
||||||
|
name: Run Ontology Tests
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cognee Setup
|
||||||
|
uses: ./.github/actions/cognee_setup
|
||||||
|
with:
|
||||||
|
python-version: '3.11.x'
|
||||||
|
|
||||||
- name: Run Ontology Demo Example
|
- name: Run Ontology Demo Example
|
||||||
env:
|
env:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
|
|
@ -136,18 +160,17 @@ jobs:
|
||||||
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
||||||
run: uv run python ./examples/python/ontology_demo_example.py
|
run: uv run python ./examples/python/ontology_demo_example.py
|
||||||
|
|
||||||
- name: Run Temporal Example
|
test-agentic-reasoning:
|
||||||
env:
|
name: Run Agentic Reasoning Tests
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
runs-on: ubuntu-22.04
|
||||||
LLM_MODEL: ${{ secrets.LLM_MODEL }}
|
steps:
|
||||||
LLM_ENDPOINT: ${{ secrets.LLM_ENDPOINT }}
|
- name: Check out repository
|
||||||
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
|
uses: actions/checkout@v4
|
||||||
LLM_API_VERSION: ${{ secrets.LLM_API_VERSION }}
|
|
||||||
EMBEDDING_MODEL: ${{ secrets.EMBEDDING_MODEL }}
|
- name: Cognee Setup
|
||||||
EMBEDDING_ENDPOINT: ${{ secrets.EMBEDDING_ENDPOINT }}
|
uses: ./.github/actions/cognee_setup
|
||||||
EMBEDDING_API_KEY: ${{ secrets.EMBEDDING_API_KEY }}
|
with:
|
||||||
EMBEDDING_API_VERSION: ${{ secrets.EMBEDDING_API_VERSION }}
|
python-version: '3.11.x'
|
||||||
run: uv run python ./examples/python/temporal_example.py
|
|
||||||
|
|
||||||
- name: Run Agentic Reasoning Example
|
- name: Run Agentic Reasoning Example
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue