UDTs: complete support (#367) #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run base integration tests on a local Data API | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
env: | |
HEADER_EMBEDDING_API_KEY_OPENAI: ${{ secrets.HEADER_EMBEDDING_API_KEY_OPENAI }} | |
# hardcoding the target DB | |
DOCKER_COMPOSE_LOCAL_DATA_API: "yes" | |
# turn on header-based reranker auth | |
ASTRAPY_FINDANDRERANK_USE_RERANKER_HEADER: "yes" | |
HEADER_RERANKING_API_KEY_NVIDIA: ${{ secrets.HEADER_RERANKING_API_KEY_NVIDIA }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pipx install uv | |
make venv | |
# Prepare to login to ECR: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.HCD_ECR_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.HCD_ECR_SECRET_KEY }} | |
aws-region: us-west-2 | |
# Login to ECR so we can pull HCD image: | |
- name: Login to Amazon ECR | |
id: login-ecr | |
uses: aws-actions/amazon-ecr-login@v2 | |
with: | |
mask-password: 'true' | |
- name: Run pytest | |
run: | | |
uv run pytest tests/base/integration |