From 097b459a626c4e0dfcc960b962e724b7b4b8a1f4 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 15 Oct 2024 17:27:52 +0100 Subject: [PATCH] Start using uv instead of pip during testing --- .github/workflows/tox.yml | 12 +++++++++--- tox.ini | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 00b5451..eb17de8 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -112,13 +112,19 @@ jobs: if: ${{ inputs.run_pre }} run: ${{ inputs.run_pre }} + - name: Prepare path for uv + run: | + echo ~/bin >> $GITHUB_PATH + - name: Install tox run: | - python3 -m pip install --upgrade pip - python3 -m pip install --upgrade "tox>=4.0.0" + python3 -m pip install --upgrade pip uv + uv tool update-shell + uv tool install "tox>=4.21.2" --with "tox-uv>=1.15.0" + tox --version - name: Log installed dists - run: python3 -m pip freeze --all + run: python3 -m uv pip freeze - run: ${{ matrix.command }} diff --git a/tox.ini b/tox.ini index a83d445..35f2347 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,8 @@ envlist = ubi9 isolated_build = True requires = - tox>=4.0.12 + tox>=4.21.2 + tox-uv>=1.15.0 [testenv] commands =