Skip to content

Commit

Permalink
actions based on astral-sh/setup-uv action
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jan 5, 2025
1 parent bcf0808 commit bd02a9b
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 42 deletions.
12 changes: 6 additions & 6 deletions actions/uv/coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions actions/uv/deptry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions actions/uv/jupyter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions actions/uv/marimo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions actions/uv/pdoc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions actions/uv/sphinx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions actions/uv/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd02a9b

Please sign in to comment.