-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ci) fix integrationtest vectorsearch #981
Changes from 4 commits
a593a35
084f478
48c8bd4
82186d2
bd29500
d9fde8d
8355130
40995d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -13,20 +13,58 @@ concurrency: | |||||||||||||||||||||
cancel-in-progress: false | ||||||||||||||||||||||
|
||||||||||||||||||||||
jobs: | ||||||||||||||||||||||
setup-environment: | ||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||
outputs: | ||||||||||||||||||||||
python-cache-key: ${{ steps.cache-python.outputs.cache-hit }} | ||||||||||||||||||||||
steps: | ||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Set up Python | ||||||||||||||||||||||
id: setup-python | ||||||||||||||||||||||
uses: actions/setup-python@v5 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
python-version: "3.10" | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Cache dependencies | ||||||||||||||||||||||
id: cache-python | ||||||||||||||||||||||
uses: actions/cache@v3 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||
if: steps.cache-python.outputs.cache-hit != 'true' | ||||||||||||||||||||||
run: | | ||||||||||||||||||||||
pip install -e .[dev] | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Upload Python environment | ||||||||||||||||||||||
uses: actions/upload-artifact@v3 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
name: python-environment | ||||||||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why you would use this instead of simply rely on |
||||||||||||||||||||||
|
||||||||||||||||||||||
integration-cloud: | ||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||
needs: setup-environment | ||||||||||||||||||||||
steps: | ||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Set up Python | ||||||||||||||||||||||
uses: actions/setup-python@v5 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
python-version: "3.9" | ||||||||||||||||||||||
cache: "pip" | ||||||||||||||||||||||
cache-dependency-path: | | ||||||||||||||||||||||
pyproject.toml | ||||||||||||||||||||||
python-version: "3.10" | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Download Python environment | ||||||||||||||||||||||
uses: actions/download-artifact@v3 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
name: python-environment | ||||||||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use actions/cache + There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, outdated version:
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||
run: | | ||||||||||||||||||||||
pip install -e .[dev] | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Run integration tests | ||||||||||||||||||||||
env: | ||||||||||||||||||||||
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} | ||||||||||||||||||||||
|
@@ -35,42 +73,54 @@ jobs: | |||||||||||||||||||||
|
||||||||||||||||||||||
integration-cloud-token: | ||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||
needs: integration-cloud | ||||||||||||||||||||||
needs: setup-environment | ||||||||||||||||||||||
steps: | ||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Set up Python | ||||||||||||||||||||||
uses: actions/setup-python@v5 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
python-version: "3.9" | ||||||||||||||||||||||
cache: "pip" | ||||||||||||||||||||||
cache-dependency-path: | | ||||||||||||||||||||||
pyproject.toml | ||||||||||||||||||||||
python-version: "3.10" | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Download Python environment | ||||||||||||||||||||||
uses: actions/download-artifact@v3 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
name: python-environment | ||||||||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||
run: | | ||||||||||||||||||||||
pip install -e .[dev] | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Run integration tests | ||||||||||||||||||||||
env: | ||||||||||||||||||||||
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} | ||||||||||||||||||||||
VESPA_CLOUD_SECRET_TOKEN: ${{ secrets.VESPA_CLOUD_SECRET_TOKEN }} | ||||||||||||||||||||||
VESPA_CLIENT_TOKEN_ID: ${{ secrets.VESPA_CLIENT_TOKEN_ID}} | ||||||||||||||||||||||
VESPA_CLIENT_TOKEN_ID: ${{ secrets.VESPA_CLIENT_TOKEN_ID }} | ||||||||||||||||||||||
run: | | ||||||||||||||||||||||
pytest tests/integration/test_integration_vespa_cloud_token.py -s -v | ||||||||||||||||||||||
|
||||||||||||||||||||||
integration-cloud-vector-search: | ||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||
needs: integration-cloud-token | ||||||||||||||||||||||
needs: setup-environment | ||||||||||||||||||||||
steps: | ||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Set up Python | ||||||||||||||||||||||
uses: actions/setup-python@v5 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
python-version: "3.9" | ||||||||||||||||||||||
cache: "pip" | ||||||||||||||||||||||
cache-dependency-path: | | ||||||||||||||||||||||
pyproject.toml | ||||||||||||||||||||||
python-version: "3.10" | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Download Python environment | ||||||||||||||||||||||
uses: actions/download-artifact@v3 | ||||||||||||||||||||||
with: | ||||||||||||||||||||||
name: python-environment | ||||||||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||
run: | | ||||||||||||||||||||||
pip install -e .[dev] | ||||||||||||||||||||||
|
||||||||||||||||||||||
- name: Run integration tests | ||||||||||||||||||||||
env: | ||||||||||||||||||||||
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }} | ||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.