diff --git a/actions/uv/coverage/action.yml b/actions/uv/coverage/action.yml index 1fc4ad92..2d37754f 100644 --- a/actions/uv/coverage/action.yml +++ b/actions/uv/coverage/action.yml @@ -32,18 +32,18 @@ inputs: runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen diff --git a/actions/uv/deptry/action.yml b/actions/uv/deptry/action.yml index 387dc66f..a08ed81b 100644 --- a/actions/uv/deptry/action.yml +++ b/actions/uv/deptry/action.yml @@ -31,20 +31,21 @@ inputs: runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH + uv sync --all-extras --dev --frozen - name: Install project dependencies shell: bash diff --git a/actions/uv/jupyter/action.yml b/actions/uv/jupyter/action.yml index 772d1db7..d0e5b5e5 100644 --- a/actions/uv/jupyter/action.yml +++ b/actions/uv/jupyter/action.yml @@ -28,18 +28,18 @@ runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen diff --git a/actions/uv/marimo/action.yml b/actions/uv/marimo/action.yml index e953273f..9c10af55 100644 --- a/actions/uv/marimo/action.yml +++ b/actions/uv/marimo/action.yml @@ -31,18 +31,18 @@ inputs: runs: using: composite steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen diff --git a/actions/uv/pdoc/action.yml b/actions/uv/pdoc/action.yml index d3da8418..dfea3579 100644 --- a/actions/uv/pdoc/action.yml +++ b/actions/uv/pdoc/action.yml @@ -37,18 +37,18 @@ inputs: runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen diff --git a/actions/uv/sphinx/action.yml b/actions/uv/sphinx/action.yml index 69191440..8d4ba865 100644 --- a/actions/uv/sphinx/action.yml +++ b/actions/uv/sphinx/action.yml @@ -32,18 +32,18 @@ inputs: runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen diff --git a/actions/uv/test/action.yml b/actions/uv/test/action.yml index 3da8677d..db19a667 100644 --- a/actions/uv/test/action.yml +++ b/actions/uv/test/action.yml @@ -28,18 +28,18 @@ inputs: runs: using: "composite" steps: + # Install uv - name: Install uv - shell: bash - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH + uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a + with: + python-version: ${{ inputs.python-version }} - name: Set up Python environment with uv shell: bash working-directory: ${{ inputs.working-directory }} run: | - # Create venv with specific Python version - uv venv --python ${{ inputs.python-version }} + # Create venv + uv venv # Add venv to PATH echo ".venv/bin" >> $GITHUB_PATH uv sync --all-extras --dev --frozen