Skip to content

Commit

Permalink
Migrated integration-cloud-token and integration-cloud-vector-search …
Browse files Browse the repository at this point in the history
…to github actions.
  • Loading branch information
glebashnik committed Aug 6, 2024
1 parent a255908 commit 1eaa5c8
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/integration-cloud-token.yml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/integration-cloud-vector-search.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 10 additions & 7 deletions .github/workflows/integration-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 1eaa5c8

Please sign in to comment.