Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

feat(tests): add new pytest-ci.ini

Amir Mehr9c2652de7260
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index cb7576074..537c12736 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -144,4 +144,4 @@ jobs:
ls -la
echo "DSP_NOTEBOOK_CACHEDIR=$(pwd)/cache" >> $GITHUB_ENV
- name: Run tests with pytest
- run: pytest -c tests_integration/pytest.ini tests_integration/
+ run: pytest -c tests_integration/pytest-ci.ini tests_integration/
diff --git a/tests_integration/pytest-ci.ini b/tests_integration/pytest-ci.ini
new file mode 100644
index 000000000..3915f3f46
--- /dev/null
+++ b/tests_integration/pytest-ci.ini
@@ -0,0 +1,6 @@
+[pytest]
+filterwarnings =
+ ignore::DeprecationWarning
+
+env =
+ DSP_NOTEBOOK_CACHEDIR=${DSP_NOTEBOOK_CACHEDIR}
diff --git a/tests_integration/pytest.ini b/tests_integration/pytest.ini
index e73e3c45c..60438fab3 100644
--- a/tests_integration/pytest.ini
+++ b/tests_integration/pytest.ini
@@ -3,4 +3,4 @@ filterwarnings =
ignore::DeprecationWarning
env =
- DSP_NOTEBOOK_CACHEDIR=/home/runner/work/dspy/dspy/cache
+ DSP_NOTEBOOK_CACHEDIR=../cache