Skip to content

Initial draft GHA improvements #1

Initial draft GHA improvements

Initial draft GHA improvements #1

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:

Check failure on line 48 in .github/workflows/ci-astra-dev-new.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-astra-dev-new.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
- { 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