From a2b4c5b9eb5e6d75b53b2e3fea1851892718499f Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 11:36:20 +0100 Subject: [PATCH 01/12] feat: Add reusable workflows for jupyter notebooks Add reusable workflows for Jupyer notebooks Feature COG-686 --- .github/reusable_workflows/notebook.yml | 66 +++++++++++++++++++++++++ .github/workflows/test_notebook.yml | 43 ++-------------- 2 files changed, 71 insertions(+), 38 deletions(-) create mode 100644 .github/reusable_workflows/notebook.yml diff --git a/.github/reusable_workflows/notebook.yml b/.github/reusable_workflows/notebook.yml new file mode 100644 index 000000000..05ca08d32 --- /dev/null +++ b/.github/reusable_workflows/notebook.yml @@ -0,0 +1,66 @@ +name: test-notebook + +on: + workflow_call: + inputs: + notebook-location: + description: "Location of Jupyter notebook to run" + required: true + type: string + secrets: + GRAPHISTRY_USERNAME: + required: true + GRAPHISTRY_PASSWORD: + required: true + OPENAI_API_KEY: + required: true + +env: + RUNTIME__LOG_LEVEL: ERROR + +jobs: + get_docs_changes: + name: docs changes + uses: ./.github/workflows/get_docs_changes.yml + + run_notebook_test: + name: test + needs: get_docs_changes + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && github.event.label.name == 'run-checks' + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Check out + uses: actions/checkout@master + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11.x' + + - name: Install Poetry + uses: snok/install-poetry@v1.3.2 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install dependencies + run: | + poetry install --no-interaction --all-extras + poetry add jupyter --no-interaction + + - name: Execute Jupyter Notebook + env: + ENV: 'dev' + LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} + run: | + poetry run jupyter nbconvert \ + --to notebook \ + --execute ${{ inputs.notebook-location }} \ + --output executed_notebook.ipynb \ + --ExecutePreprocessor.timeout=1200 \ No newline at end of file diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index e5d10f0f5..985e4a646 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -12,52 +12,19 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - RUNTIME__LOG_LEVEL: ERROR - jobs: - get_docs_changes: - name: docs changes - uses: ./.github/workflows/get_docs_changes.yml - run_notebook_test: name: test - needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} runs-on: ubuntu-latest defaults: run: shell: bash steps: - - name: Check out - uses: actions/checkout@master - - - name: Setup Python - uses: actions/setup-python@v5 + - name: run notebook workflow + uses: ./.github/reusable_workflows/notebook.yml with: - python-version: '3.11.x' - - - name: Install Poetry - uses: snok/install-poetry@v1.3.2 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - - - name: Install dependencies - run: | - poetry install --no-interaction - poetry add jupyter --no-interaction - - - name: Execute Jupyter Notebook - env: - ENV: 'dev' - LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} + notebook-location: notebooks/cognee_demo.ipynb + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} - run: | - poetry run jupyter nbconvert \ - --to notebook \ - --execute notebooks/cognee_demo.ipynb \ - --output executed_notebook.ipynb \ - --ExecutePreprocessor.timeout=1200 \ No newline at end of file From d586336596be62c45bc4251ce71c5663ffe720a8 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 11:46:20 +0100 Subject: [PATCH 02/12] test: Fix issue with notebook action Resolve issue with wrongly defined notebook action Test COG-686 --- .github/workflows/test_notebook.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index 985e4a646..f8ff86052 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -14,17 +14,10 @@ concurrency: jobs: run_notebook_test: - name: test - runs-on: ubuntu-latest - defaults: - run: - shell: bash - steps: - - name: run notebook workflow - uses: ./.github/reusable_workflows/notebook.yml - with: - notebook-location: notebooks/cognee_demo.ipynb - secrets: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} - GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} + uses: ./.github/reusable_workflows/notebook.yml + with: + notebook-location: notebooks/cognee_demo.ipynb + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} From e72a84c1c3090bad6bcf2c79bd1ec88a0a16f210 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 11:53:26 +0100 Subject: [PATCH 03/12] test: Resolve issue with notebook location Reusable workflows must be in the workflows github folder Test COG-686 --- .../notebook.yml => workflows/reusable_notebook.yml} | 0 .github/workflows/test_notebook.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/{reusable_workflows/notebook.yml => workflows/reusable_notebook.yml} (100%) diff --git a/.github/reusable_workflows/notebook.yml b/.github/workflows/reusable_notebook.yml similarity index 100% rename from .github/reusable_workflows/notebook.yml rename to .github/workflows/reusable_notebook.yml diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index f8ff86052..8d03c783c 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -14,7 +14,7 @@ concurrency: jobs: run_notebook_test: - uses: ./.github/reusable_workflows/notebook.yml + uses: ./.github/workflows/reusable_notebook.yml with: notebook-location: notebooks/cognee_demo.ipynb secrets: From 6e8ca2f0e6327e505ddb7f0043290f1048f83780 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:04:31 +0100 Subject: [PATCH 04/12] test: Attempt to fix event propagation issue Trying to resolve issue of propagating github events to reusable workflow Test COG-686 --- .github/workflows/reusable_notebook.yml | 6 +++++- .github/workflows/test_notebook.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable_notebook.yml b/.github/workflows/reusable_notebook.yml index 05ca08d32..4f5a56ce4 100644 --- a/.github/workflows/reusable_notebook.yml +++ b/.github/workflows/reusable_notebook.yml @@ -7,6 +7,10 @@ on: description: "Location of Jupyter notebook to run" required: true type: string + label-name: + description: "Name of the label triggering the event" + required: true + type: string secrets: GRAPHISTRY_USERNAME: required: true @@ -26,7 +30,7 @@ jobs: run_notebook_test: name: test needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && github.event.label.name == 'run-checks' + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && inputs.label-name == 'run-checks' runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index 8d03c783c..f9387df40 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -17,6 +17,7 @@ jobs: uses: ./.github/workflows/reusable_notebook.yml with: notebook-location: notebooks/cognee_demo.ipynb + label-name: ${{ github.event.label.name }} # Pass event information explicitly secrets: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} From d0d033bf977ce85707f9643b98c1ed8a9273f320 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:06:25 +0100 Subject: [PATCH 05/12] chore: Test work of github action when removing label need Test work of github action when label is not needed Chore COG-686 --- .github/workflows/reusable_notebook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable_notebook.yml b/.github/workflows/reusable_notebook.yml index 4f5a56ce4..675582d1c 100644 --- a/.github/workflows/reusable_notebook.yml +++ b/.github/workflows/reusable_notebook.yml @@ -30,7 +30,7 @@ jobs: run_notebook_test: name: test needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && inputs.label-name == 'run-checks' + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' runs-on: ubuntu-latest defaults: run: From ce99936ed5e5716efb3317e965778947d2eba20f Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:14:04 +0100 Subject: [PATCH 06/12] chore: Test github action Test notebook github action Chore COG-686 --- .github/workflows/reusable_notebook.yml | 2 +- .github/workflows/test_cognee_llama_index_notebook.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_notebook.yml b/.github/workflows/reusable_notebook.yml index 675582d1c..38f5980c8 100644 --- a/.github/workflows/reusable_notebook.yml +++ b/.github/workflows/reusable_notebook.yml @@ -30,7 +30,7 @@ jobs: run_notebook_test: name: test needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/test_cognee_llama_index_notebook.yml b/.github/workflows/test_cognee_llama_index_notebook.yml index 860eec92b..339f920d6 100644 --- a/.github/workflows/test_cognee_llama_index_notebook.yml +++ b/.github/workflows/test_cognee_llama_index_notebook.yml @@ -23,7 +23,7 @@ jobs: run_notebook_test: name: test needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && github.event.label.name == 'run-checks' + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} runs-on: ubuntu-latest defaults: run: From eaf26b5c9e32ba66ae5d4f0350bee2ac6e2a9105 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:16:28 +0100 Subject: [PATCH 07/12] chore: Update github action regrading notebook Update github action related to jupyter notebook Chore COG-686 --- .github/workflows/reusable_notebook.yml | 4 ---- .github/workflows/test_notebook.yml | 1 - 2 files changed, 5 deletions(-) diff --git a/.github/workflows/reusable_notebook.yml b/.github/workflows/reusable_notebook.yml index 38f5980c8..e4bcfc14f 100644 --- a/.github/workflows/reusable_notebook.yml +++ b/.github/workflows/reusable_notebook.yml @@ -7,10 +7,6 @@ on: description: "Location of Jupyter notebook to run" required: true type: string - label-name: - description: "Name of the label triggering the event" - required: true - type: string secrets: GRAPHISTRY_USERNAME: required: true diff --git a/.github/workflows/test_notebook.yml b/.github/workflows/test_notebook.yml index f9387df40..8d03c783c 100644 --- a/.github/workflows/test_notebook.yml +++ b/.github/workflows/test_notebook.yml @@ -17,7 +17,6 @@ jobs: uses: ./.github/workflows/reusable_notebook.yml with: notebook-location: notebooks/cognee_demo.ipynb - label-name: ${{ github.event.label.name }} # Pass event information explicitly secrets: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} From ea38a0f51b08ff8d66ae374dbbd670051195bb99 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 12:20:12 +0100 Subject: [PATCH 08/12] chore: Update all notebook github actions Update all notebook github actions to use reusable_notebook workflow Chore COG-686 --- .../test_cognee_llama_index_notebook.yml | 55 +++---------------- .../test_cognee_multimedia_notebook.yml | 55 +++---------------- 2 files changed, 14 insertions(+), 96 deletions(-) diff --git a/.github/workflows/test_cognee_llama_index_notebook.yml b/.github/workflows/test_cognee_llama_index_notebook.yml index 339f920d6..48940c19f 100644 --- a/.github/workflows/test_cognee_llama_index_notebook.yml +++ b/.github/workflows/test_cognee_llama_index_notebook.yml @@ -7,57 +7,16 @@ on: - main types: [labeled, synchronize] - concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - RUNTIME__LOG_LEVEL: ERROR - jobs: - get_docs_changes: - name: docs changes - uses: ./.github/workflows/get_docs_changes.yml - run_notebook_test: - name: test - needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} - runs-on: ubuntu-latest - defaults: - run: - shell: bash - steps: - - name: Check out - uses: actions/checkout@master - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.11.x' - - - name: Install Poetry - uses: snok/install-poetry@v1.3.2 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - - - name: Install dependencies - run: | - poetry install --no-interaction --all-extras - poetry add jupyter --no-interaction - - - name: Execute Jupyter Notebook - env: - ENV: 'dev' - LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} - GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} - GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} - run: | - poetry run jupyter nbconvert \ - --to notebook \ - --execute notebooks/cognee_llama_index.ipynb \ - --output executed_notebook.ipynb \ - --ExecutePreprocessor.timeout=1200 \ No newline at end of file + uses: ./.github/workflows/reusable_notebook.yml + with: + notebook-location: notebooks/cognee_llama_index.ipynb + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} diff --git a/.github/workflows/test_cognee_multimedia_notebook.yml b/.github/workflows/test_cognee_multimedia_notebook.yml index dd14fa5e6..19ecb0acd 100644 --- a/.github/workflows/test_cognee_multimedia_notebook.yml +++ b/.github/workflows/test_cognee_multimedia_notebook.yml @@ -7,57 +7,16 @@ on: - main types: [labeled, synchronize] - concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - RUNTIME__LOG_LEVEL: ERROR - jobs: - get_docs_changes: - name: docs changes - uses: ./.github/workflows/get_docs_changes.yml - run_notebook_test: - name: test - needs: get_docs_changes - if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} - runs-on: ubuntu-latest - defaults: - run: - shell: bash - steps: - - name: Check out - uses: actions/checkout@master - - - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.11.x' - - - name: Install Poetry - uses: snok/install-poetry@v1.3.2 - with: - virtualenvs-create: true - virtualenvs-in-project: true - installer-parallel: true - - - name: Install dependencies - run: | - poetry install --no-interaction - poetry add jupyter --no-interaction - - - name: Execute Jupyter Notebook - env: - ENV: 'dev' - LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} - GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} - GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} - run: | - poetry run jupyter nbconvert \ - --to notebook \ - --execute notebooks/cognee_multimedia_demo.ipynb \ - --output executed_notebook.ipynb \ - --ExecutePreprocessor.timeout=1200 \ No newline at end of file + uses: ./.github/workflows/reusable_notebook.yml + with: + notebook-location: notebooks/cognee_multimedia_demo.ipynb + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} From c7a8d2995b1c9cc3c3f8aa95bb8ceb5e289f5079 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 13:42:04 +0100 Subject: [PATCH 09/12] test: Add reusable python example workflow Add reusable workflow for python examples, add simple example python script test Test COG-686 --- .github/workflows/reusable_python_example.yml | 60 +++++++++++++++++++ .github/workflows/test_simple_example.yml | 23 +++++++ 2 files changed, 83 insertions(+) create mode 100644 .github/workflows/reusable_python_example.yml create mode 100644 .github/workflows/test_simple_example.yml diff --git a/.github/workflows/reusable_python_example.yml b/.github/workflows/reusable_python_example.yml new file mode 100644 index 000000000..5a8e47e64 --- /dev/null +++ b/.github/workflows/reusable_python_example.yml @@ -0,0 +1,60 @@ +name: test-example + +on: + workflow_call: + inputs: + example-location: + description: "Location of example script to run" + required: true + type: string + secrets: + GRAPHISTRY_USERNAME: + required: true + GRAPHISTRY_PASSWORD: + required: true + OPENAI_API_KEY: + required: true + +env: + RUNTIME__LOG_LEVEL: ERROR + +jobs: + get_docs_changes: + name: docs changes + uses: ./.github/workflows/get_docs_changes.yml + + run_notebook_test: + name: test + needs: get_docs_changes + if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' && ${{ github.event.label.name == 'run-checks' }} + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - name: Check out + uses: actions/checkout@master + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11.x' + + - name: Install Poetry + uses: snok/install-poetry@v1.3.2 + with: + virtualenvs-create: true + virtualenvs-in-project: true + installer-parallel: true + + - name: Install dependencies + run: | + poetry install --no-interaction --all-extras + + - name: Execute Python Example + env: + ENV: 'dev' + LLM_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} + run: poetry run python ${{ inputs.example-location }} \ No newline at end of file diff --git a/.github/workflows/test_simple_example.yml b/.github/workflows/test_simple_example.yml new file mode 100644 index 000000000..78e0b5252 --- /dev/null +++ b/.github/workflows/test_simple_example.yml @@ -0,0 +1,23 @@ +name: test | simple example + +on: + workflow_dispatch: + pull_request: + branches: + - main + types: [labeled, synchronize] + + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + run_simple_example_test: + uses: ./.github/workflows/reusable_python_example.yml + with: + example-location: ./examples/python/simple_example.py + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} From f363ece4a7e0fb85437e08c7290a129edf680635 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 13:45:38 +0100 Subject: [PATCH 10/12] chore: Test if raised error will be caught Test if error raised inside python example will be caught Chore COG-686 --- examples/python/simple_example.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/python/simple_example.py b/examples/python/simple_example.py index 55b07c4c3..5e6ede707 100644 --- a/examples/python/simple_example.py +++ b/examples/python/simple_example.py @@ -9,6 +9,7 @@ from cognee.api.v1.search import SearchType async def main(): + raise ValueError # Create a clean slate for cognee -- reset data and system state print("Resetting cognee data...") await cognee.prune.prune_data() From 2389e60fc144a220109e748c14fef7c5ea3d802a Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 13:48:13 +0100 Subject: [PATCH 11/12] chore: Return example to previous state before testing error raising Return example to normal state after confirming error raising will be caught by gh action Chore COG-686 --- examples/python/simple_example.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/python/simple_example.py b/examples/python/simple_example.py index 5e6ede707..55b07c4c3 100644 --- a/examples/python/simple_example.py +++ b/examples/python/simple_example.py @@ -9,7 +9,6 @@ from cognee.api.v1.search import SearchType async def main(): - raise ValueError # Create a clean slate for cognee -- reset data and system state print("Resetting cognee data...") await cognee.prune.prune_data() From a345471fef82b9a1d980e52253515bafbd277aad Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 29 Nov 2024 13:51:09 +0100 Subject: [PATCH 12/12] test: Add dynamic steps and multimedia example python script testing in github actions Added dynamic steps and multimedia python example scripts testing in github actions Test COG-686 --- .../workflows/test_dynamic_steps_example.yml | 23 +++++++++++++++++++ .../workflows/test_multimedia_example.yaml | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/test_dynamic_steps_example.yml create mode 100644 .github/workflows/test_multimedia_example.yaml diff --git a/.github/workflows/test_dynamic_steps_example.yml b/.github/workflows/test_dynamic_steps_example.yml new file mode 100644 index 000000000..5b8add72b --- /dev/null +++ b/.github/workflows/test_dynamic_steps_example.yml @@ -0,0 +1,23 @@ +name: test | dynamic steps example + +on: + workflow_dispatch: + pull_request: + branches: + - main + types: [labeled, synchronize] + + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + run_dynamic_steps_example_test: + uses: ./.github/workflows/reusable_python_example.yml + with: + example-location: ./examples/python/dynamic_steps_example.py + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }} diff --git a/.github/workflows/test_multimedia_example.yaml b/.github/workflows/test_multimedia_example.yaml new file mode 100644 index 000000000..6456da741 --- /dev/null +++ b/.github/workflows/test_multimedia_example.yaml @@ -0,0 +1,23 @@ +name: test | multimedia example + +on: + workflow_dispatch: + pull_request: + branches: + - main + types: [labeled, synchronize] + + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + run_multimedia_example_test: + uses: ./.github/workflows/reusable_python_example.yml + with: + example-location: ./examples/python/multimedia_example.py + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + GRAPHISTRY_USERNAME: ${{ secrets.GRAPHISTRY_USERNAME }} + GRAPHISTRY_PASSWORD: ${{ secrets.GRAPHISTRY_PASSWORD }}