Skip to content

Commit

Permalink
Update test.yml to use uv pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed May 29, 2024
1 parent 01b4292 commit 344b336
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 344b336

Please sign in to comment.