Skip to content
Draft
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
enable-cache: true

- name: Install dependencies
run: uv sync --locked
run: uv sync --locked --extra cpu --no-install-package llama-cpp-python

- name: Prepare frontend build
run: mkdir -p DashAI/front/build
Expand All @@ -57,4 +57,4 @@ jobs:
name: react-build
path: DashAI/front/build
- name: Test with pytest
run: uv run pytest -v
run: uv run --no-sync pytest -v
12 changes: 6 additions & 6 deletions .github/workflows/db-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
enable-cache: true

- name: Install dependencies
run: uv sync --locked
run: uv sync --locked --extra cpu --no-install-package llama-cpp-python

- name: Set DB env vars
run: |
Expand All @@ -36,7 +36,7 @@ jobs:

- name: Show Alembic info
run: |
uv run alembic --version
uv run --no-sync alembic --version
echo "DB will be at: $DATABASE_URL"

- name: Prepare temp dir
Expand All @@ -47,15 +47,15 @@ jobs:
# upgrade to head
- name: Upgrade to head
run: |
uv run alembic -x url="$DATABASE_URL" upgrade head
uv run --no-sync alembic -x url="$DATABASE_URL" upgrade head

# Checks downgrade and upgrade again (reversibility)
- name: Downgrade to base and upgrade again (reversibility check)
run: |
uv run alembic -x url="$DATABASE_URL" downgrade base
uv run alembic -x url="$DATABASE_URL" upgrade head
uv run --no-sync alembic -x url="$DATABASE_URL" downgrade base
uv run --no-sync alembic -x url="$DATABASE_URL" upgrade head

- name: Check for pending autogenerate (python-based)
env:
PYTHONPATH: "${PYTHONPATH}:."
run: uv run python -m scripts.ci_alembic_check
run: uv run --no-sync python -m scripts.ci_alembic_check
4 changes: 3 additions & 1 deletion DashAI/back/dependencies/registry/component_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def get_related_components(self, component_id: str) -> List[Dict[str, Any]]:
"""Obtain any related component of the given component name.

If the component has no related components, then the method returns an empty
list.
list. Related names that are not registered components (e.g. an explainer
declared by a model but provided by an uninstalled plugin) are skipped.

Parameters
----------
Expand All @@ -479,4 +480,5 @@ def get_related_components(self, component_id: str) -> List[Dict[str, Any]]:
return [
self.__getitem__(related_component_id)
for related_component_id in self._relationship_manager[component_id]
if self.__contains__(related_component_id)
]
Loading
Loading