Replace push_back
with emplace_back
#63
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: 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 |