Skip to content

Commit f787f4c

Browse files
committed
breaking: switch to use tox-uv
1 parent fcdea8c commit f787f4c

6 files changed

Lines changed: 30 additions & 18 deletions

File tree

.github/workflows/circular.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
matrix:
1515
python-version: ["3.11"]
1616
os: ["ubuntu-latest"]
17+
env:
18+
UV_PYTHON: ${{ matrix.python-version }}
1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325
- name: Cache packages
@@ -31,7 +33,7 @@ jobs:
3133
- name: Install OS dependencies
3234
run: sudo apt-get install -y libgraphviz-dev
3335
- name: Install dependencies
34-
run: python -m pip install tox
36+
run: uv pip install tox tox-uv
3537
- name: Initialize tox
3638
run: |
3739
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi

.github/workflows/coverage.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ jobs:
1818
matrix:
1919
python-version: ["3.11"]
2020
os: ["ubuntu-latest"]
21+
env:
22+
UV_PYTHON: ${{ matrix.python-version }}
2123
steps:
2224
- uses: actions/checkout@v4
23-
- name: Set up Python
24-
uses: actions/setup-python@v5
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
2527
with:
2628
python-version: ${{ matrix.python-version }}
2729
- name: install OS packages
@@ -36,7 +38,7 @@ jobs:
3638
${{ runner.os }}-pip-${{ matrix.python-version }}-
3739
${{ runner.os }}-pip-
3840
- name: Install dependencies
39-
run: python -m pip install tox
41+
run: uv pip install tox tox-uv
4042
- name: Initialize tox
4143
run: |
4244
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi

.github/workflows/dependencies.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
matrix:
1515
python-version: ["3.11"]
1616
os: ["ubuntu-latest"]
17+
env:
18+
UV_PYTHON: ${{ matrix.python-version }}
1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325
- name: Cache packages
@@ -29,7 +31,7 @@ jobs:
2931
${{ runner.os }}-pip-${{ matrix.python-version }}-
3032
${{ runner.os }}-pip-
3133
- name: Install dependencies
32-
run: python -m pip install tox
34+
run: uv pip install tox tox-uv
3335
- name: Initialize tox
3436
run: |
3537
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi

.github/workflows/qa.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
matrix:
1515
python-version: ["3.11"]
1616
os: ["ubuntu-latest"]
17+
env:
18+
UV_PYTHON: ${{ matrix.python-version }}
1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325
- name: Cache packages
@@ -29,7 +31,7 @@ jobs:
2931
${{ runner.os }}-pip-${{ matrix.python-version }}-
3032
${{ runner.os }}-pip-
3133
- name: Install dependencies
32-
run: python -m pip install tox
34+
run: uv pip install tox tox-uv
3335
- name: Initialize tox
3436
run: |
3537
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi

.github/workflows/release_ready.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
matrix:
1515
python-version: ["3.11"]
1616
os: ["ubuntu-latest"]
17+
env:
18+
UV_PYTHON: ${{ matrix.python-version }}
1719
steps:
1820
- uses: actions/checkout@v4
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v5
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325
- name: Cache packages
@@ -29,7 +31,7 @@ jobs:
2931
${{ runner.os }}-pip-${{ matrix.python-version }}-
3032
${{ runner.os }}-pip-
3133
- name: Install dependencies
32-
run: python -m pip install tox
34+
run: uv pip install tox tox-uv
3335
- name: Initialize tox
3436
run: |
3537
if [ `tox list --no-desc -f init|wc -l` = 1 ]; then tox -e init;else true; fi

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
matrix:
2323
python-version: ${{ fromJson( inputs.py-versions) }}
2424
os: ["ubuntu-latest"]
25+
env:
26+
UV_PYTHON: ${{ matrix.python-version }}
2527
steps:
2628
- uses: actions/checkout@v4
27-
- name: Set up Python
28-
uses: actions/setup-python@v5
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v5
2931
with:
3032
python-version: ${{ matrix.python-version }}
3133
- name: install OS packages
@@ -40,7 +42,7 @@ jobs:
4042
${{ runner.os }}-pip-${{ matrix.python-version }}-
4143
${{ runner.os }}-pip-
4244
- name: Install dependencies
43-
run: python -m pip install tox
45+
run: uv pip install tox tox-uv
4446
- name: Initialize tox
4547
# the bash one-liner below does not work on Windows
4648
if: contains(matrix.os, 'ubuntu')

0 commit comments

Comments
 (0)