Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

fix(ci): install pytest-mock in release test environments (#10384)

Isaac Millerecba33763316
diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml
index b53209bd3..52b1e30e3 100644
--- a/.github/workflows/build_and_release.yml
+++ b/.github/workflows/build_and_release.yml
@@ -69,7 +69,7 @@ jobs:
run: |
source test_before_testpypi/bin/activate
# Install the locally built wheel and testing dependencies
- pip install dist/*.whl pytest pytest-asyncio
+ pip install dist/*.whl pytest pytest-asyncio pytest-mock
pytest tests/metadata/test_metadata.py tests/predict
(cd "$RUNNER_TEMP" && python -c 'import dspy; assert dspy.PythonInterpreter().execute("6 * 7") == 42')
deactivate
@@ -129,7 +129,7 @@ jobs:
run: |
source test_before_pypi/bin/activate
# Install the locally built wheel and testing dependencies
- pip install dist/*.whl pytest pytest-asyncio
+ pip install dist/*.whl pytest pytest-asyncio pytest-mock
pytest tests/metadata/test_metadata.py tests/predict
(cd "$RUNNER_TEMP" && python -c 'import dspy; assert dspy.PythonInterpreter().execute("6 * 7") == 42')
deactivate