diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d9bc7f0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: test + +on: + push: + branches: [main] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + - run: go vet ./... + - run: go test -race ./... diff --git a/README.md b/README.md index 1350674..cb1203b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # go-sqlite-vector +[![test](https://github.com/justintout/go-sqlite-vector/actions/workflows/test.yml/badge.svg)](https://github.com/justintout/go-sqlite-vector/actions/workflows/test.yml) + Pure Go vector search for SQLite. No CGo required. Register scalar SQL functions on a [zombiezen.com/go/sqlite](https://pkg.go.dev/zombiezen.com/go/sqlite) connection to store embeddings as blobs and run k-nearest neighbor queries with `ORDER BY vector_distance(...) LIMIT k`.