fix: deprecate local embedding tests (#1789)

This commit is contained in:
Sarah Wooders 2024-09-25 14:08:59 -07:00 committed by GitHub
parent dda63c4d51
commit 7c1ad87574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 29 deletions

View File

@ -1,28 +0,0 @@
name: Endpoint (Local)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: "3.12"
poetry-version: "1.8.2"
install-args: "-E dev -E local"
- name: Test embedding endpoint
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run pytest -s -vv tests/test_endpoints.py::test_embedding_endpoint_local

View File

@ -350,7 +350,7 @@ def test_sources(client: Union[LocalClient, RESTClient], agent: AgentState):
assert len(active_jobs) == 1
# wait for job to finish (with timeout)
timeout = 60
timeout = 120
start_time = time.time()
while True:
status = client.get_job(upload_job.id).status