-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 1 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Testing
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
chroma-no-auth:
image: chromadb/chroma
ports:
- 8080:8000
chroma-with-auth:
image: chromadb/chroma
ports:
- 8081:8000
env:
CHROMA_SERVER_AUTHN_CREDENTIALS: authToken
CHROMA_SERVER_AUTHN_PROVIDER: chromadb.auth.token_authn.TokenAuthenticationServerProvider
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake libssl-dev
- name: Configure CMake
run: cmake -S . -B build
- name: Build
run: cmake --build build
- name: Run tests
run: ctest --test-dir build -C Release --output-on-failure