Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Oct 14, 2024
1 parent 60ed911 commit 79738f7
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
resolution:
description: "Resolution strategy"
required: true
default: "highest"
default: "frozen"
uv-version:
description: "uv version to use"
required: true
Expand All @@ -29,19 +29,14 @@ runs:
enable-cache: "true"
cache-suffix: ${{ inputs.python-version }}-${{ inputs.resolution }}

# Install eo-tides and all required dependencies.
# --all-extras will install all optional dependencies.
# resolution method will install either "highest""
# versions of dependencies, or "lowest-direct" versions
- name: Install Python dependencies
run: |
if [ "${{ inputs.resolution }}" == "lowest-direct" ]; then
uv sync --all-extras --resolution lowest-direct
if [ "${{ inputs.resolution }}" == "frozen" ]; then
uv sync --frozen --all-extras
else
uv sync --frozen --all-extras
uv sync --all-extras --resolution ${{ inputs.resolution }}
fi
shell: bash

# - name: Install Python dependencies
# # Install eo-tides and all required dependencies.
# # --all-extras will install all optional dependencies.
# # resolution method will install either "highest""
# # versions of dependencies, or "lowest-direct" versions
# run: uv sync --all-extras --resolution lowest-direct
# shell: bash

0 comments on commit 79738f7

Please sign in to comment.