Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
build: Update the pytest script to cache poetry artifacts, so tests finish faster (#843)
RT2d7c5a048788
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex bceba7e29..4bd4e95a6 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -23,18 +23,16 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v2+ uses: actions/checkout@v4- name: Build and run containerrun: bash db/run_postgres.sh- - name: Set up Python- uses: actions/setup-python@v4+ - name: "Setup Python, Poetry and Dependencies"+ uses: packetcoders/action-setup-cache-python-poetry@mainwith:python-version: "3.11"-- - name: Install poetry- run: pip install poetry+ poetry-version: "1.7.1"- name: Set Poetry configrun: |@@ -42,27 +40,16 @@ jobs:poetry config virtualenvs.path ~/.virtualenvs- name: Install dependencies using Poetry- env:- PGVECTOR_TEST_DB_URL: postgresql+pg8000://memgpt:memgpt@localhost:8888/memgpt-- OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}run: |poetry install --all-extras- - name: Set Poetry config- env:- PGVECTOR_TEST_DB_URL: postgresql+pg8000://memgpt:memgpt@localhost:8888/memgpt- OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}- run: |- poetry config virtualenvs.in-project false- poetry config virtualenvs.path ~/.virtualenvs-- name: Run tests with pytestenv:PGVECTOR_TEST_DB_URL: postgresql+pg8000://memgpt:memgpt@localhost:8888/memgptOPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}run: |PGVECTOR_TEST_DB_URL=postgresql+pg8000://memgpt:memgpt@localhost:8888/memgpt OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} poetry run pytest -s -vv -k "not test_storage" tests+- name: Run storage testsenv:PGVECTOR_TEST_DB_URL: postgresql+pg8000://memgpt:memgpt@localhost:8888/memgpt