Skip to content

Commit

Permalink
Updated uv in actions
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Abbas Jaffri <[email protected]>
  • Loading branch information
aliabbasjaffri committed Nov 29, 2024
1 parent ce07965 commit 0668fc8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/actions/setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,14 @@ runs:
python-version: ${{ inputs.pythonVersion }}
cache: "pip"
cache-dependency-path: |
requirements-dev.txt
requirements-docs.txt
pyproject.toml
uv.lock
- name: Install uv
run: |
pip install uv && uv venv venv && source venv/bin/activate
pip install uv && uv venv --seed .venv && source .venv/bin/activate
shell: bash
- run: echo "VIRTUAL_ENV=venv" >> $GITHUB_ENV
- run: echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
shell: bash
- name: Install dependencies
run: |
uv pip install --upgrade --system pip && uv pip install --system pip-tools
if [[ "${{ inputs.dependencyType }}" == "dev" ]]; then
uv pip install --system -r requirements-dev.txt
elif [[ "${{ inputs.dependencyType }}" == "docs" ]]; then
uv pip install --system -r requirements-docs.txt
fi
uv pip install --system -e . --no-deps
uv sync
shell: bash

0 comments on commit 0668fc8

Please sign in to comment.