Skip to content

Commit 35a44d3

Browse files
committed
Add new composite action for python install with uv
Signed-off-by: Samuel Monson <smonson@redhat.com>
1 parent c97f119 commit 35a44d3

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Setup Python and uv'
2+
description: 'Configures a Python version and uv'
3+
inputs:
4+
python-version:
5+
type: string
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- uses: actions/setup-python@v6
11+
with:
12+
python-version: ${{ inputs.python-version }}
13+
- name: Setup Python with UV
14+
uses: astral-sh/setup-uv@v7
15+
with:
16+
python-version: ${{ inputs.python-version }}
17+
enable-cache: "true"

.github/actions/run-tox/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
using: "composite"
1515
steps:
1616
- name: Setup Python with UV
17-
uses: astral-sh/setup-uv@v7
17+
uses: ./.github/actions/python-uv
1818
with:
1919
python-version: ${{ inputs.python-version }}
2020
- name: Install system dependencies

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232
- name: Setup Python with UV
33-
uses: astral-sh/setup-uv@v7
33+
uses: ./.github/actions/python-uv
3434
with:
3535
python-version: ${{ matrix.python }}
3636
- name: Install dependencies

.github/workflows/release-candidate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
- name: Setup Python with UV
32-
uses: astral-sh/setup-uv@v7
32+
uses: ./.github/actions/python-uv
3333
with:
3434
python-version: ${{ matrix.python }}
3535
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030
- name: Setup Python with UV
31-
uses: astral-sh/setup-uv@v7
31+
uses: ./.github/actions/python-uv
3232
with:
3333
python-version: ${{ matrix.python }}
3434
- name: Install dependencies

0 commit comments

Comments
 (0)