DSPy: The framework for programming—not prompting—language models
Python
chore(build_package.yml): remove caching of Poetry installation and venv to simplify workflow and improve reliability fix(build_package.yml): fix missing newline at end of file to adhere to coding conventions
Darinfa3f075bc403
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.ymlindex cbbee8666..062eb7bf7 100644--- a/.github/workflows/build_package.yml+++ b/.github/workflows/build_package.yml@@ -23,23 +23,9 @@ jobs:uses: actions/setup-python@v4with:python-version: ${{ matrix.python-version }}- - name: Load cached Poetry installation- id: cached-poetry- uses: actions/cache@v3- with:- path: ~/.local # the path depends on the OS- key: poetry-0 # increment to reset cache- name: Install Poetry- if: steps.cached-poetry.outputs.cache-hit != 'true'uses: snok/install-poetry@v1- - name: Load cached venv- id: cached-poetry-dependencies- uses: actions/cache@v3- with:- path: .venv- key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}- name: Install dependencies- if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'run: poetry install --no-root- name: Buildshell: bash@@ -50,4 +36,4 @@ jobs:- name: Test importshell: bashworking-directory: ${{ vars.RUNNER_TEMP }}- run: python -c "import dspy"+ run: python -c "import dspy"\ No newline at end of file