From a8a44436ab0613e485233d7bd0360e93c8f97190 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Wed, 25 Sep 2024 14:08:59 -0700 Subject: [PATCH] fix: deprecate local embedding tests (#1789) --- .github/workflows/test_local.yml | 28 ---------------------------- tests/test_client.py | 2 +- 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .github/workflows/test_local.yml diff --git a/.github/workflows/test_local.yml b/.github/workflows/test_local.yml deleted file mode 100644 index 2232938e..00000000 --- a/.github/workflows/test_local.yml +++ /dev/null @@ -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 diff --git a/tests/test_client.py b/tests/test_client.py index fbe770e4..ba20d984 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -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