diff --git a/.github/workflows/integration-cloud-token.yml b/.github/workflows/integration-cloud-token.yml new file mode 100644 index 00000000..51a055d8 --- /dev/null +++ b/.github/workflows/integration-cloud-token.yml @@ -0,0 +1,32 @@ +name: Integration - cloud token + +on: + workflow_dispatch: + # Uncomment these when reviewed. + # push: + # branches: + # - master + # pull_request: + # branches: + # - master + # schedule: + # - cron: '0 11 * * *' + +jobs: + integration-cloud-token: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.9' + - name: Install dependencies + run: | + pip install -e .[dev] + - name: Run integration tests + env: + VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} + CO_API_KEY: ${{ secrets.VESPA_CLOUD_SECRET_TOKEN }} + run: | + pytest tests/integration/test_integration_vespa_cloud_token.py -s -v diff --git a/.github/workflows/integration-cloud-vector-search.yml b/.github/workflows/integration-cloud-vector-search.yml new file mode 100644 index 00000000..897bafe6 --- /dev/null +++ b/.github/workflows/integration-cloud-vector-search.yml @@ -0,0 +1,32 @@ +name: Integration - cloud vector search + +on: + workflow_dispatch: + # Uncomment these when reviewed. + # push: + # branches: + # - master + # pull_request: + # branches: + # - master + # schedule: + # - cron: '0 11 * * *' + +jobs: + integration-cloud-vector-search: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.9' + - name: Install dependencies + run: | + pip install -e .[dev] + - name: Run integration tests + env: + VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} + CO_API_KEY: ${{ secrets.VESPA_CLOUD_SECRET_TOKEN }} + run: | + pytest tests/integration/test_integration_vespa_cloud_vector_search.py -s -v diff --git a/.github/workflows/integration-cloud.yml b/.github/workflows/integration-cloud.yml index 8e98a192..b534e736 100644 --- a/.github/workflows/integration-cloud.yml +++ b/.github/workflows/integration-cloud.yml @@ -2,10 +2,15 @@ name: Integration - cloud on: workflow_dispatch: - push: - branches: - # Replace this with master when reviewed. - - glebashnik/integration-cloud-to-github-action + # Uncomment these when reviewed. + # push: + # branches: + # - master + # pull_request: + # branches: + # - master + # schedule: + # - cron: '0 11 * * *' jobs: integration-cloud: @@ -15,14 +20,12 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: '3.9' - name: Install dependencies run: | pip install -e .[dev] - name: Run integration tests env: VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} - CO_API_KEY: ${{ secrets.CO_API_KEY }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: | pytest tests/integration/test_integration_vespa_cloud.py -s -v