Update lanter version on ci, fix tests #90
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: test | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubicloud-standard-2-arm] | |
postgres: [15] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Setup test env | |
run: sudo su -c "SETUP_POSTGRES=1 SETUP_TESTS=1 ./ci/scripts/build.sh" | |
env: | |
PG_VERSION: ${{ matrix.postgres }} | |
- name: Run tests | |
run: sudo su -c ". $HOME/.cargo/env && OPENAI_TOKEN=$OPENAI_TOKEN COHERE_TOKEN=$COHERE_TOKEN DB_URL='postgres://[email protected]:5432/postgres' cargo test --workspace --exclude lantern_extras -- --nocapture --test-threads=1" | |
env: | |
OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }} | |
COHERE_TOKEN: ${{ secrets.COHERE_TOKEN }} |