Skip to content

Commit c97f119

Browse files
committed
Update workflows to use uv
Signed-off-by: Samuel Monson <smonson@redhat.com>
1 parent c022c8b commit c97f119

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Run tox with environment'
2-
description: 'Runs tox with pdm as the package manager'
2+
description: 'Runs tox with uv as the package manager'
33
inputs:
44
python-version:
55
type: string
@@ -13,8 +13,8 @@ inputs:
1313
runs:
1414
using: "composite"
1515
steps:
16-
- name: Setup Python with PDM
17-
uses: pdm-project/setup-pdm@v4
16+
- name: Setup Python with UV
17+
uses: astral-sh/setup-uv@v7
1818
with:
1919
python-version: ${{ inputs.python-version }}
2020
- name: Install system dependencies
@@ -23,11 +23,11 @@ runs:
2323
shell: bash
2424
- name: Install dependencies
2525
run: |
26-
pip install tox tox-pdm
26+
uv pip install tox tox-uv
2727
shell: bash
2828
- name: Run tox
2929
run: |
30-
tox run -e "${{ inputs.tox-env }}" -- ${{ inputs.tox-args }} || ret=$?
30+
tox run --runner uv-venv-lock-runner -e "${{ inputs.tox-env }}" -- ${{ inputs.tox-args }} || ret=$?
3131
# errno 5 means all tests were filtered out, ignore
3232
[[ "${ret:=0}" -eq 5 ]] && exit 0; exit $ret
3333
shell: bash

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
32-
- name: Set up Python
33-
uses: pdm-project/setup-pdm@v4
32+
- name: Setup Python with UV
33+
uses: astral-sh/setup-uv@v7
3434
with:
3535
python-version: ${{ matrix.python }}
3636
- name: Install dependencies
3737
run: |
38-
pip install tox tox-pdm
38+
uv pip install tox tox-pdm
3939
- name: Build the package
4040
run: |
4141
export GUIDELLM_BUILD_TYPE=nightly

.github/workflows/release-candidate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31-
- name: Set up Python
32-
uses: pdm-project/setup-pdm@v4
31+
- name: Setup Python with UV
32+
uses: astral-sh/setup-uv@v7
3333
with:
3434
python-version: ${{ matrix.python }}
3535
- name: Install dependencies
3636
run: |
37-
pip install tox tox-pdm
37+
uv pip install tox tox-pdm
3838
- name: Build the package
3939
run: |
4040
export GUIDELLM_BUILD_TYPE=candidate

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
30-
- name: Set up Python
31-
uses: pdm-project/setup-pdm@v4
30+
- name: Setup Python with UV
31+
uses: astral-sh/setup-uv@v7
3232
with:
3333
python-version: ${{ matrix.python }}
3434
- name: Install dependencies
3535
run: |
36-
pip install tox tox-pdm
36+
uv pip install tox tox-pdm
3737
- name: Build the package
3838
run: |
3939
export GUIDELLM_BUILD_TYPE=release

0 commit comments

Comments
 (0)