Skip to content

Loosen the pydantic type check to ignore extra fields for all MarqoIn… #669

Loosen the pydantic type check to ignore extra fields for all MarqoIn…

Loosen the pydantic type check to ignore extra fields for all MarqoIn… #669

name: cpu_docker_marqo_API_tests
# runs API Tests on CPU instance with Vespa and Marqo in the same docker container
on:
workflow_call:
workflow_dispatch:
inputs:
py_marqo_branch:
required: false
default: mainline
description: >
The "py-marqo" branch this test is running against.
This is optional. If left as the default value "mainline", we run the test based on the "mainline" branch of
py-marqo. Otherwise, the specified branch is tested. For example "prefix/test-xx". You can also use "marqo" and
it will use the latest pypi release.
image_identifier:
required: false
# This is the name of the docker image that is built by the build script:
default: marqo_docker_0
description: >
This is optional. If left as the default value "marqo_docker_0", the docker image built from this branch is tested.
Otherwise, the specified Docker image is tested. For example "marqoai/marqo:test"
push:
branches:
- mainline
- releases/*
paths-ignore:
- '**.md'
permissions:
contents: read
id-token: write
jobs:
Test-Marqo:
name: Run CPU Docker Marqo API Tests
runs-on: "runs-on=${{ github.run_id }}/family=m6i.xlarge/ami=${{ vars.MARQO_CPU_AMD64_TESTS_INSTANCE_AMI }}"
defaults:
run:
working-directory: tests/api_tests/v1
steps:
- name: Checkout Marqo repo
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Install py-marqo
run: bash scripts/install_pymarqo.sh ${{ inputs.py_marqo_branch }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Run Integration Tests - CPU Docker Marqo
run: |
CUSTOM_TEST_IMG="${{ github.event.inputs.image_identifier }}"
export TESTING_CONFIGURATION=CPU_DOCKER_MARQO
export MARQO_API_TESTS_ROOT=$(pwd)
export MARQO_IMAGE_NAME=${CUSTOM_TEST_IMG:-"marqo_docker_0"}
bash scripts/build_marqo.sh $MARQO_IMAGE_NAME
bash scripts/start_docker_marqo.sh $MARQO_IMAGE_NAME
pytest tests/