Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

feat(tests): add integration test to CI.

Amir Mehr2e10d67ff17f
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 07062257a..e8ae96830 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -65,6 +65,37 @@ jobs:
- name: Run tests with pytest
run: poetry run pytest tests/
+ integration_test:
+ name: Run Integration Tests
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.9"]
+ steps:
+ - uses: actions/checkout@v4
+ - name: Load cached Poetry installation
+ id: cached-poetry
+ uses: actions/cache@v3
+ with:
+ path: ~/.local
+ key: poetry-${{ env.POETRY_VERSION }}-${{ hashFiles('**/poetry.lock') }}
+ - name: Install Poetry
+ if: steps.cached-poetry.outputs.cache-hit != 'true'
+ uses: snok/install-poetry@v1
+ - name: Set up python ${{ matrix.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ cache: "poetry"
+ - name: Install dependencies
+ run: poetry install --no-interaction
+ - name: Run lint with tests
+ uses: chartboost/ruff-action@v1
+ with:
+ args: --fix-only
+ - name: Run tests with pytest
+ run: poetry run pytest tests_integration/
+
build_poetry:
name: Build Poetry
runs-on: ubuntu-latest