Skip to content

Commit

Permalink
try uv
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Nov 22, 2024
1 parent d9fde8d commit 9b081bc
Showing 1 changed file with 33 additions and 30 deletions.
63 changes: 33 additions & 30 deletions .github/workflows/integration-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,65 +19,68 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v3
with:
python-version: "3.10"
cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: Set up Python
run: uv python install 3.10

- name: Install the project
run: uv sync --extra dev

- name: Run integration tests
env:
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }}
run: |
pytest tests/integration/test_integration_vespa_cloud.py -s -v
uv run pytest tests/integration/test_integration_vespa_cloud.py -s -v
integration-cloud-token:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
id: setup-python
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v3
with:
python-version: "3.10"
cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: Set up Python
run: uv python install 3.10

- name: Install the project
run: uv sync --extra 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 }}
run: |
pytest tests/integration/test_integration_vespa_cloud_token.py -s -v
uv run pytest tests/integration/test_integration_vespa_cloud_token.py -s -v
integration-cloud-vector-search:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
id: setup-python
uses: actions/setup-python@v5
- name: Define a cache dependency glob
uses: astral-sh/setup-uv@v3
with:
python-version: "3.10"
cache: "pip"
- run: echo '${{ steps.setup-python.outputs.cache-hit }}' # true if cache-hit occurred on the primary key
- name: Install dependencies
run: |
pip install -e .[dev]
enable-cache: true
cache-dependency-glob: "pyproject.toml"

- name: Set up Python
run: uv python install 3.10

- name: Install the project
run: uv sync --extra dev

- name: Run integration tests
env:
VESPA_TEAM_API_KEY: ${{ secrets.VESPA_TEAM_API_KEY }}
run: |
pytest tests/integration/test_integration_vespa_cloud_vector_search.py -s -v
uv run pytest tests/integration/test_integration_vespa_cloud_vector_search.py -s -v

0 comments on commit 9b081bc

Please sign in to comment.