Skip to content

update README.md

update README.md #9

Workflow file for this run

name: Docker API Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Build Docker image
run: docker build -t ghcr.io/birchkwok/minvectordb/minvectordb:latest .
- name: Run Docker container
run: docker run -d --name minvectordb -p 5403:7637 ghcr.io/birchkwok/minvectordb/minvectordb:latest
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest numba torch
$reqFile = "requirements.txt"
if (Test-Path $reqFile) { pip install -r $reqFile }
shell: pwsh
- name: Run tests
run: pytest test/docker_tests/
- name: Cleanup
if: always()
run: docker stop minvectordb && docker rm minvectordb