Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Split CI into build and test

Isaac Miller79ea18c20a7c
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml
index 62c36e69b..7b421efde 100644
--- a/.github/workflows/build_package.yml
+++ b/.github/workflows/build_package.yml
@@ -25,10 +25,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- - name: Install dependencies
- run: poetry install
- - name: Run tests with pytest
- run: poetry run pytest tests/
- name: Build
shell: bash
run: poetry build
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
new file mode 100644
index 000000000..fc52d94c3
--- /dev/null
+++ b/.github/workflows/run_tests.yml
@@ -0,0 +1,31 @@
+name: Run Tests
+
+# Build package on its own without additional pip install
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+env:
+ POETRY_VERSION: "1.6.1"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ["3.9"]
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up python ${{ matrix.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install Poetry
+ uses: snok/install-poetry@v1
+ - name: Install dependencies
+ run: poetry install
+ - name: Run tests with pytest
+ run: poetry run pytest tests/