From 79738f765fd9b3675bb45431f73c24c55ee22aad Mon Sep 17 00:00:00 2001 From: Robbi Bishop-Taylor Date: Mon, 14 Oct 2024 03:59:02 +0000 Subject: [PATCH] Update action --- .github/actions/setup-python-env/action.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/actions/setup-python-env/action.yml b/.github/actions/setup-python-env/action.yml index c39ddf4..edce8b0 100644 --- a/.github/actions/setup-python-env/action.yml +++ b/.github/actions/setup-python-env/action.yml @@ -9,7 +9,7 @@ inputs: resolution: description: "Resolution strategy" required: true - default: "highest" + default: "frozen" uv-version: description: "uv version to use" required: true @@ -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