DSPy: The framework for programming—not prompting—language models
Python
feat(tests): change it to ci way -_-
Amir Mehrb4f33913af5a
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex f1539f169..6c1ddf576 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -121,28 +121,43 @@ jobs:- name: Run setup.py buildrun: python setup.py build- integration_test:- name: Run Integration Tests- runs-on: ubuntu-latest- strategy:- matrix:- python-version: ["3.9"]- steps:- - uses: actions/checkout@v4- - name: Set up python ${{ matrix.python-version }}- uses: actions/setup-python@v5- with:- python-version: ${{ matrix.python-version }}- - name: Add directory to Python path- run: echo "PYTHONPATH=$(python -c 'import sys; print(":".join(sys.path))'):$(pwd)" >> $GITHUB_ENV- - name: Install dependencies- run: pip install -r requirements.txt- - name: Install dev dependencies- run: pip install -r requirements-dev.txt- - name: Set up cache directory- run: |- pwd ./cache- ls -la cache- echo "DSP_NOTEBOOK_CACHEDIR=$(pwd)/cache" >> $GITHUB_ENV- - name: Run tests with pytest- run: pytest -c tests_integration/pytest.ini tests_integration/+integration_test:+ name: Run Integration Tests+ runs-on: ubuntu-latest+ strategy:+ matrix:+ python-version: ["3.9"]+ steps:+ - uses: actions/checkout@v4++ - name: Set up python ${{ matrix.python-version }}+ uses: actions/setup-python@v5+ with:+ python-version: ${{ matrix.python-version }}++ - name: Cache pip dependencies+ uses: actions/cache@v3+ with:+ path: ~/.cache/pip+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ matrix.python-version }}+ restore-keys: |+ ${{ runner.os }}-pip-${{ matrix.python-version }}+ ${{ runner.os }}-pip++ - name: Add directory to Python path+ run: echo "PYTHONPATH=$(python -c 'import sys; print(':'.join(sys.path))'):$(pwd)" >> $GITHUB_ENV++ - name: Install dependencies+ run: pip install -r requirements.txt++ - name: Install dev dependencies+ run: pip install -r requirements-dev.txt++ - name: Set up cache directory+ run: |+ mkdir -p ./cache+ ls -la cache+ echo "DSP_NOTEBOOK_CACHEDIR=$(pwd)/cache" >> $GITHUB_ENV++ - name: Run tests with pytest+ run: pytest -c tests_integration/pytest.ini tests_integration/