diff --git a/.github/workflows/test-min.yml b/.github/workflows/test-min.yml index cad2a4f80f..a6d8c8899d 100644 --- a/.github/workflows/test-min.yml +++ b/.github/workflows/test-min.yml @@ -43,12 +43,12 @@ jobs: - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - python_version=$(python -c "import sys; print(sys.version_info[:2])") + pip install uv + uv pip install --system --resolution lowest --editable ".[dev,tests,anthropic,argilla,cohere,groq,hf-inference-endpoints,hf-transformers,litellm,llama-cpp,ollama,openai,outlines,vertexai,vllm]" - uv pip install --system --resolution lowest -e .[dev,tests,anthropic,argilla,cohere,groq,hf-inference-endpoints,hf-transformers,litellm,llama-cpp,ollama,openai,outlines,vertexai,vllm] + python_version=$(python -c "import sys; print(sys.version_info[:2])") if [ "${python_version}" != "(3, 8)" ]; then - uv pip install --system --resolution lowest -e .[mistralai,instructor] + uv pip install --system --resolution lowest --editable ".[mistralai,instructor]" fi; # Here we don't use the `--resolution=lowest` flag because we had issues # in the past with LLM-Blender, that's why we're also using a custom fork diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 392fd951c6..4841f98793 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,12 +43,12 @@ jobs: - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: | - python_version=$(python -c "import sys; print(sys.version_info[:2])") - 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] + uv pip install --system --resolution highest --editable ".[dev,tests,anthropic,argilla,cohere,groq,hf-inference-endpoints,hf-transformers,litellm,llama-cpp,ollama,openai,outlines,vertexai,vllm]" + + python_version=$(python -c "import sys; print(sys.version_info[:2])") if [ "${python_version}" != "(3, 8)" ]; then - uv pip install --system --resolution highest -e .[mistralai,instructor] + uv pip install --system --resolution highest --editable ".[mistralai,instructor]" fi; # 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