bugfix/metadata-filter: fix parseDocumentJSONQuery #274
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: debian:bullseye-slim | |
environment: build-test | |
services: | |
postgres: | |
image: ghcr.io/getzep/postgres:latest | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
nlp: | |
image: ghcr.io/getzep/zep-nlp-server:0.3.0-beta.0 | |
env: | |
ENABLE_EMBEDDINGS: true | |
options: >- | |
--health-cmd "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/5557' || exit 1" | |
--health-interval 10s | |
--health-timeout 10s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install certs and build-essential (required by CGO) | |
run: apt-get update && apt-get install -y ca-certificates build-essential | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.20' | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: CGO_ENABLED=1 go test -tags=testutils -race -p 1 -v ./... | |
env: | |
ZEP_OPENAI_API_KEY: ${{ secrets.ZEP_OPENAI_API_KEY }} | |
ZEP_STORE_POSTGRES_DSN: 'postgres://postgres:postgres@postgres:5432/?sslmode=disable' | |
ZEP_NLP_SERVER_URL: 'http://nlp:5557' |