fix: uv uninstalls rest of packages in some workflows
This commit is contained in:
parent
a1edfc98c2
commit
1ab332828f
9 changed files with 35 additions and 46 deletions
14
.github/actions/cognee_setup/action.yml
vendored
14
.github/actions/cognee_setup/action.yml
vendored
|
|
@ -6,6 +6,10 @@ inputs:
|
||||||
description: "Which Python version to use"
|
description: "Which Python version to use"
|
||||||
required: false
|
required: false
|
||||||
default: "3.11.x"
|
default: "3.11.x"
|
||||||
|
extra-dependencies:
|
||||||
|
description: "Additional extra dependencies to install (space-separated)"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
@ -23,4 +27,12 @@ runs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: uv sync --extra api --extra docs --extra evals --extra gemini --extra codegraph --extra ollama --extra dev --extra neo4j
|
run: |
|
||||||
|
EXTRA_ARGS=""
|
||||||
|
if [ -n "${{ inputs.extra-dependencies }}" ]; then
|
||||||
|
IFS=' ' read -r -a deps <<< "${{ inputs.extra-dependencies }}"
|
||||||
|
for extra in "${deps[@]}"; do
|
||||||
|
EXTRA_ARGS="$EXTRA_ARGS --extra $extra"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
uv sync --extra api --extra docs --extra evals --extra gemini --extra codegraph --extra ollama --extra dev --extra neo4j $EXTRA_ARGS
|
||||||
|
|
|
||||||
9
.github/workflows/db_examples_tests.yml
vendored
9
.github/workflows/db_examples_tests.yml
vendored
|
|
@ -54,10 +54,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
|
||||||
- name: Install Neo4j extra
|
|
||||||
run: |
|
|
||||||
uv sync --extra neo4j
|
|
||||||
|
|
||||||
- name: Run Neo4j Example
|
- name: Run Neo4j Example
|
||||||
env:
|
env:
|
||||||
ENV: dev
|
ENV: dev
|
||||||
|
|
@ -138,10 +134,7 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
extra-dependencies: "postgres"
|
||||||
- name: Install PGVector extra
|
|
||||||
run: |
|
|
||||||
uv sync --extra postgres
|
|
||||||
|
|
||||||
- name: Run PGVector Example
|
- name: Run PGVector Example
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
11
.github/workflows/e2e_tests.yml
vendored
11
.github/workflows/e2e_tests.yml
vendored
|
|
@ -140,10 +140,7 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "postgres"
|
||||||
- name: Install specific db dependency
|
|
||||||
run: |
|
|
||||||
uv sync --extra postgres
|
|
||||||
|
|
||||||
- name: Run Deduplication Example
|
- name: Run Deduplication Example
|
||||||
env:
|
env:
|
||||||
|
|
@ -192,10 +189,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "aws"
|
||||||
|
|
||||||
- name: Install specific S3 dependency
|
- name: Dependencies already installed
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra aws
|
|
||||||
|
|
||||||
- name: Run S3 Bucket Test
|
- name: Run S3 Bucket Test
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
5
.github/workflows/examples_tests.yml
vendored
5
.github/workflows/examples_tests.yml
vendored
|
|
@ -33,10 +33,7 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "deepeval"
|
||||||
- name: Install specific eval dependency
|
|
||||||
run: |
|
|
||||||
uv sync --extra deepeval
|
|
||||||
|
|
||||||
- name: Run Evaluation Framework Example
|
- name: Run Evaluation Framework Example
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
4
.github/workflows/graph_db_tests.yml
vendored
4
.github/workflows/graph_db_tests.yml
vendored
|
|
@ -72,10 +72,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
|
||||||
- name: Install specific db dependency
|
|
||||||
run: |
|
|
||||||
uv sync --extra neo4j
|
|
||||||
|
|
||||||
- name: Run default Neo4j
|
- name: Run default Neo4j
|
||||||
env:
|
env:
|
||||||
ENV: 'dev'
|
ENV: 'dev'
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Install specific db dependency
|
- name: Install specific db dependency
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra postgres
|
|
||||||
|
|
||||||
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
||||||
env:
|
env:
|
||||||
|
|
@ -120,10 +120,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Install specific db dependency
|
- name: Install specific db dependency
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra postgres
|
|
||||||
|
|
||||||
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
||||||
env:
|
env:
|
||||||
|
|
@ -184,10 +184,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: '3.11.x'
|
python-version: '3.11.x'
|
||||||
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Install specific db dependency
|
- name: Install specific db dependency
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra postgres --extra neo4j
|
|
||||||
|
|
||||||
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
- name: Run PostgreSQL Script to create test data (Chinook_PostgreSql.sql)
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
5
.github/workflows/reusable_notebook.yml
vendored
5
.github/workflows/reusable_notebook.yml
vendored
|
|
@ -46,10 +46,7 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
extra-dependencies: "notebook"
|
||||||
- name: Install specific db dependency
|
|
||||||
run: |
|
|
||||||
uv sync --extra notebook
|
|
||||||
|
|
||||||
- name: Execute Jupyter Notebook
|
- name: Execute Jupyter Notebook
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
16
.github/workflows/search_db_tests.yml
vendored
16
.github/workflows/search_db_tests.yml
vendored
|
|
@ -78,9 +78,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
|
||||||
- name: Install specific db dependency
|
- name: Dependencies already installed
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra neo4j
|
|
||||||
|
|
||||||
- name: Run Neo4j search Tests
|
- name: Run Neo4j search Tests
|
||||||
env:
|
env:
|
||||||
|
|
@ -129,9 +128,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Dependencies already installed
|
||||||
run: uv sync --extra postgres
|
run: echo "Dependencies already installed in setup"
|
||||||
|
|
||||||
- name: Run Kuzu/PGVector/Postgres Tests
|
- name: Run Kuzu/PGVector/Postgres Tests
|
||||||
env:
|
env:
|
||||||
|
|
@ -195,10 +195,10 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
extra-dependencies: "postgres"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Dependencies already installed
|
||||||
run: |
|
run: echo "Dependencies already installed in setup"
|
||||||
uv sync --extra neo4j --extra postgres
|
|
||||||
|
|
||||||
- name: Run Neo4j + PGVector + Postgres search Tests
|
- name: Run Neo4j + PGVector + Postgres search Tests
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
5
.github/workflows/vector_db_tests.yml
vendored
5
.github/workflows/vector_db_tests.yml
vendored
|
|
@ -87,10 +87,7 @@ jobs:
|
||||||
uses: ./.github/actions/cognee_setup
|
uses: ./.github/actions/cognee_setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.python-version }}
|
python-version: ${{ inputs.python-version }}
|
||||||
|
extra-dependencies: "postgres"
|
||||||
- name: Install specific db dependency
|
|
||||||
run: |
|
|
||||||
uv sync --extra postgres
|
|
||||||
|
|
||||||
- name: Run PGVector Tests
|
- name: Run PGVector Tests
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue