Skip to content

Commit 08f9013

Browse files
committed
ci: Replace tox with uv+poe in Github workflows
Use uv to install all pinned dependencies and poethepoet as task runner. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 95a4a88 commit 08f9013

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

.github/workflows/package.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ jobs:
1818
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
1919
with:
2020
python-version: "3.13"
21-
- name: Install Python dependencies
22-
run: |
23-
pip3 install build
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
24+
2425
- name: Build a binary wheel and a source tarball
25-
run: |
26-
python -m build
26+
run: uv build
27+
2728
- name: Store the distribution packages
2829
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2930
with:

.github/workflows/test-distros.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ jobs:
7575
- name: Display Python version
7676
run: python3 -c "import sys; print(sys.version); print(sys.platform)"
7777

78-
- name: Install tox
79-
run: pip3 install tox --break-system-packages
78+
- name: Install uv
79+
run: pip3 install uv --break-system-packages
8080

81-
- name: Run tox
82-
run: tox -- -W error
81+
- name: Install Python dependencies
82+
run: uv sync --frozen
83+
84+
- name: Run tasks
85+
run: uv run poe all

.github/workflows/test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,21 @@ jobs:
2727
path: "./check out"
2828
persist-credentials: false
2929

30-
- name: Set up Python
31-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
3232
with:
3333
python-version: ${{ matrix.python-version }}
34+
working-directory: './check out/'
35+
enable-cache: true
3436

3537
- name: Display Python version
3638
run: python -c "import sys; print(sys.version); print(sys.platform)"
3739

38-
- name: Install tox
39-
run: pip3 install tox
40+
- name: Setup project
41+
run: uv sync --frozen --directory "./check out/"
4042

41-
- name: Run tox
42-
run: tox -c 'check out' -- -W error
43+
- name: Run tasks
44+
run: uv run --frozen --directory "./check out/" poe all
4345

4446
- name: Upload coverage reports
4547
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

0 commit comments

Comments
 (0)