2cab53bc94
Test Vector Database Adaptors / Test MCP Vector DB Tools (push) Has been cancelled
Tests / Code Quality (Ruff & Mypy) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (macos-latest, 3.11) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (macos-latest, 3.12) (push) Has been cancelled
Tests / Tests (push) Has been cancelled
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers CLI - Convert documentation to AI skills dockerfile:Dockerfile name:skill-seekers]) (push) Has been cancelled
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers MCP Server - 25 tools for AI assistants dockerfile:Dockerfile.mcp name:skill-seekers-mcp]) (push) Has been cancelled
Docker Publish / Test Docker Images (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / Serial / Integration / E2E Tests (push) Has been cancelled
Tests / MCP Server Tests (push) Has been cancelled
Test Vector Database Adaptors / Test chroma Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test faiss Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test qdrant Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test weaviate Adaptor (push) Has been cancelled
113 lines
3.3 KiB
YAML
113 lines
3.3 KiB
YAML
# Security Note: This workflow uses only push/pull_request/workflow_dispatch triggers.
|
|
# Matrix values are hardcoded constants. No untrusted input is used in run: commands.
|
|
|
|
name: Test Vector Database Adaptors
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, development ]
|
|
paths:
|
|
- 'src/skill_seekers/cli/adaptors/**'
|
|
- 'src/skill_seekers/mcp/tools/vector_db_tools.py'
|
|
- 'tests/test_*adaptor*.py'
|
|
- 'tests/test_mcp_vector_dbs.py'
|
|
- 'tests/test_docker_smoke.py'
|
|
- 'tests/test_upload_integration.py'
|
|
pull_request:
|
|
branches: [ main, development ]
|
|
paths:
|
|
- 'src/skill_seekers/cli/adaptors/**'
|
|
- 'src/skill_seekers/mcp/tools/vector_db_tools.py'
|
|
- 'tests/test_*adaptor*.py'
|
|
- 'tests/test_mcp_vector_dbs.py'
|
|
- 'tests/test_docker_smoke.py'
|
|
- 'tests/test_upload_integration.py'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test-adaptors:
|
|
name: Test ${{ matrix.adaptor }} Adaptor
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
adaptor: [weaviate, chroma, faiss, qdrant]
|
|
python-version: ['3.10', '3.12']
|
|
|
|
env:
|
|
ADAPTOR_NAME: ${{ matrix.adaptor }}
|
|
PYTHON_VERSION: ${{ matrix.python-version }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
pip install -e .
|
|
|
|
- name: Run adaptor tests
|
|
run: |
|
|
echo "🧪 Testing $ADAPTOR_NAME adaptor..."
|
|
python -m pytest "tests/test_adaptors/test_${ADAPTOR_NAME}_adaptor.py" -v --tb=short
|
|
|
|
- name: Test adaptor integration
|
|
run: |
|
|
echo "🔗 Testing $ADAPTOR_NAME integration..."
|
|
|
|
# Create test skill
|
|
mkdir -p test_skill/references
|
|
echo "# Test Skill" > test_skill/SKILL.md
|
|
echo "Test content" >> test_skill/SKILL.md
|
|
echo "# Reference" > test_skill/references/ref.md
|
|
|
|
# Test adaptor packaging
|
|
python3 -c "
|
|
import os
|
|
from pathlib import Path
|
|
from skill_seekers.cli.adaptors import get_adaptor
|
|
adaptor_name = os.environ['ADAPTOR_NAME']
|
|
adaptor = get_adaptor(adaptor_name)
|
|
package_path = adaptor.package(Path('test_skill'), Path('.'))
|
|
print(f'Package created: {package_path}')
|
|
assert package_path.exists(), 'Package file not created'
|
|
print(f'Package size: {package_path.stat().st_size} bytes')
|
|
"
|
|
|
|
- name: Upload test package
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-package-${{ env.ADAPTOR_NAME }}-py${{ env.PYTHON_VERSION }}
|
|
path: test_skill-${{ env.ADAPTOR_NAME }}.json
|
|
retention-days: 7
|
|
|
|
test-mcp-tools:
|
|
name: Test MCP Vector DB Tools
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest
|
|
pip install -e .
|
|
|
|
- name: Run MCP vector DB tests
|
|
run: |
|
|
echo "🧪 Testing MCP vector database tools..."
|
|
python -m pytest tests/test_mcp_vector_dbs.py -v --tb=short
|
|
|