mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: deprecate local embedding tests (#1789)
This commit is contained in:
parent
dda63c4d51
commit
7c1ad87574
28
.github/workflows/test_local.yml
vendored
28
.github/workflows/test_local.yml
vendored
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user