Skip to content

Commit

Permalink
Merge branch 'main' into user_guide_update
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajerin authored Nov 14, 2024
2 parents 73f1ab2 + a225d63 commit c0fd0bf
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/extension_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,9 @@ jobs:
- name: Clippy
run: cargo clippy

test:
name: Run tests
needs: dependencies
test-core:
runs-on: ubuntu-24.04
services:
# Label used to access the service container
vector-serve:
image: quay.io/tembo/vector-serve:latest
ports:
Expand All @@ -99,10 +96,7 @@ jobs:
/home/runner/.pgrx
- name: Install sys dependencies
run: |
sudo apt-get update && sudo apt-get install -y postgresql-server-dev-16 libopenblas-dev libreadline-dev
- uses: ./.github/actions/pgx-init
with:
working-directory: ./extension
sudo apt-get update && sudo apt-get install -y postgresql postgresql-contrib libopenblas-dev libreadline-dev
- name: Test Core
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand All @@ -112,6 +106,35 @@ jobs:
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}
run: |
cd ../core && cargo test
test:
name: Run tests
needs: dependencies
runs-on: ubuntu-24.04
services:
# Label used to access the service container
vector-serve:
image: quay.io/tembo/vector-serve:latest
ports:
- 3000:3000
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "extension-test"
workspaces: |
vectorize
# Additional directories to cache
cache-directories: |
/home/runner/.pgrx
- name: Install sys dependencies
run: |
sudo apt-get update && sudo apt-get install -y postgresql-server-dev-16 libopenblas-dev libreadline-dev
- uses: ./.github/actions/pgx-init
with:
working-directory: ./extension
- name: Restore cached binaries
uses: actions/cache@v2
with:
Expand Down

0 comments on commit c0fd0bf

Please sign in to comment.