diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 56c39f169..392fd951c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,18 +38,22 @@ jobs: id: cache with: path: ${{ env.pythonLocation }} - key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v00 + key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-latest - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: | python_version=$(python -c "import sys; print(sys.version_info[:2])") - pip install -e .[dev,tests,anthropic,argilla,cohere,groq,hf-inference-endpoints,hf-transformers,litellm,llama-cpp,ollama,openai,outlines,vertexai,vllm] + pip install uv + uv pip install --system --resolution highest -e .[dev,tests,anthropic,argilla,cohere,groq,hf-inference-endpoints,hf-transformers,litellm,llama-cpp,ollama,openai,outlines,vertexai,vllm] if [ "${python_version}" != "(3, 8)" ]; then - pip install -e .[mistralai,instructor] + uv pip install --system --resolution highest -e .[mistralai,instructor] fi; - pip install git+https://github.com/argilla-io/LLM-Blender.git + # We're using a custom fork since otherwise LLM-Blender cannot be installed + # due to a dependency mismatch on their end, solved in the fork by pinning + # the `spaCy` dependency + uv pip install --system git+https://github.com/argilla-io/LLM-Blender.git - name: Lint run: make lint