DSPy: The framework for programming—not prompting—language models
Python
feat(tests): cache file.
Amir Mehr4ad4b9ff1197
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 967dc5454..b8b755d00 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -138,8 +138,6 @@ jobs:run: echo "PYTHONPATH=$(python -c 'import sys; print(":".join(sys.path))'):$(pwd)" >> $GITHUB_ENV- name: Install dependenciesrun: pip install -r requirements.txt- - name: Install dev dependencies- run: pip install -r requirements-dev.txt- name: Set up cache directoryrun: |cd ./cachediff --git a/requirements.txt b/requirements.txtindex e5569d1f3..769615059 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,12 +1,20 @@backoff+black==24.2.0datasetsjoblib<=1.3.2openai>=0.28.1,<2.0.0optunapandas+pre-commit==3.7.0pydantic~=2.0+pytest==8.2.1+pytest-env==1.1.3+pytest-mock==3.12.0regexrequests+ruff==0.3.0structlog+torch==2.2.1tqdm+transformers==4.38.2ujsondiff --git a/tests_integration/test_intro.py b/tests_integration/test_intro.pyindex 7c9d2a185..01b814a60 100644--- a/tests_integration/test_intro.py+++ b/tests_integration/test_intro.py@@ -10,6 +10,7 @@ import dspyclass BaseIntegrationTestWithCache:@pytest.fixture(autouse=True)def setup(self) -> None:+ return# Base directory for all DSPy moduleslibrary_dir = Path(__file__).resolve().parentbase_dir = library_dir.parent