Added test for empty array for PGbit #98
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 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [21, 17, 11, 8] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
cache: maven | |
- uses: ankane/setup-postgres@v1 | |
with: | |
database: pgvector_java_test | |
dev-files: true | |
- run: | | |
cd /tmp | |
git clone --branch v0.7.0 https://github.com/pgvector/pgvector.git | |
cd pgvector | |
make | |
sudo make install | |
- run: psql -d pgvector_java_test -c "CREATE EXTENSION vector" | |
# Hibernate 6.4 and HttpClient require Java 11+ | |
- if: ${{ matrix.java == 8 }} | |
run: | | |
rm src/test/java/com/pgvector/CohereTest.java | |
rm src/test/java/com/pgvector/HibernateTest.java | |
rm src/test/java/com/pgvector/OpenAITest.java | |
- run: mvn -B -ntp test |