-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
260 additions
and
96 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 'Build with Java & Maven' | ||
description: 'Checkout code, set up JDK, and build with Maven' | ||
inputs: | ||
skip_tests: | ||
description: 'Skip tests during Maven build' | ||
required: false | ||
default: 'true' | ||
java_distribution: | ||
description: 'JDK distribution to use' | ||
required: false | ||
default: 'adopt' | ||
java_version: | ||
description: 'JDK version to use' | ||
required: false | ||
default: '11' | ||
cache_name: | ||
description: 'Cache to be used' | ||
required: false | ||
default: 'maven' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK ${{ inputs.java_version }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ java_distribution }} | ||
java-version: ${{ inputs.java_version }} | ||
cache: ${{ inputs.cache_name}} | ||
|
||
- name: Build with Maven | ||
run: | | ||
mvn install -Dmaven.test.skip=${{ inputs.skip_tests }} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: AstraDev NEW | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout & Build | ||
uses: ./.github/actions/build-with-maven | ||
|
||
run_dev_tests: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- cloud_provider: AWS | ||
cloud_region: us-west-2 | ||
- cloud_provider: GCP | ||
cloud_region: europe-west4 | ||
# - cloud_provider: GCP | ||
# cloud_region: us-central1 | ||
steps: | ||
- name: Checkout & Build | ||
uses: ./.github/actions/build-with-maven | ||
|
||
- name: Run Maven Tests | ||
env: | ||
ASTRA_DB_APPLICATION_TOKEN_DEV: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN_DEV }} | ||
ASTRA_CLOUD_PROVIDER_DEV: ${{ matrix.cloud_provider }} | ||
ASTRA_CLOUD_REGION_DEV: ${{ matrix.cloud_region }} | ||
run: | | ||
cd astra-db-java | ||
mvn test -Dtest=com.datastax.astra.test.integration.dev.*Test | ||
run_vectorize_tests: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- cloud_provider: AWS | ||
cloud_region: us-west-2 | ||
- cloud_provider: GCP | ||
cloud_region: europe-west4 | ||
embedding_provider: | ||
- { name: openai, key: ${{ secrets.OPENAI_API_KEY }} } | ||
- { name: azureOpenAI, key: ${{ secrets.AZURE_OPENAI_API_KEY }} } | ||
- { name: huggingface, key: ${{ secrets.HF_API_KEY }} } | ||
- { name: mistral, key: ${{ secrets.MISTRAL_API_KEY }} } | ||
- { name: voyageAI, key: ${{ secrets.VOYAGE_API_KEY }} } | ||
- { name: upstageAI, key: ${{ secrets.UPSTAGE_API_KEY }} } | ||
- { name: jinaAI, key: ${{ secrets.JINA_API_KEY }} } | ||
- { name: nvidia, key: 'nvidia' } # Not used | ||
|
||
steps: | ||
- name: Checkout & Build | ||
uses: ./.github/actions/build-with-maven | ||
|
||
- name: Run Maven Tests | ||
env: | ||
ASTRA_DB_APPLICATION_TOKEN_DEV: ${{ secrets.ASTRA_DB_APPLICATION_TOKEN_DEV }} | ||
ASTRA_CLOUD_PROVIDER_DEV: ${{ matrix.cloud_provider }} | ||
ASTRA_CLOUD_REGION_DEV: ${{ matrix.cloud_region }} | ||
EMBEDDING_PROVIDER: ${{ matrix.embedding_provider.name }} | ||
EMBEDDING_API_KEY: ${{ matrix.embedding_provider.key }} | ||
run: | | ||
cd astra-db-java | ||
mvn test -Dtest=com.datastax.astra.test.integration.dev_vectorize.AstraDevVectorizeEmbeddingApiKeyITTest |
Oops, something went wrong.