Skip to content

fix: resolve normalize_embeddings parameter compatibility issue #13

fix: resolve normalize_embeddings parameter compatibility issue

fix: resolve normalize_embeddings parameter compatibility issue #13

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
pip install pre-commit
- name: Run linters
run: |
pre-commit run --all-files
test:
name: Test
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Run CI tests
run: |
docker-compose -f .docker/docker-compose.ci.yml up --build --exit-code-from tests
- name: Upload coverage reports
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: ./coverage/
build:
name: Build Docker Image
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: files-db-mcp:latest
cache-from: type=gha
cache-to: type=gha,mode=max