From 0de666aa83d84b46234bf008f94db7d56d66a2ea Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 2 Nov 2024 11:18:22 -0400 Subject: [PATCH] build: use tox-uv to speed test runs Following the guidance in https://dev.to/hugovk/speed-up-ci-with-uv-53n1 --- .github/workflows/testsuite.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 1f85ca745..62245f590 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -98,20 +98,23 @@ jobs: # python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())" env | sort - - name: "Install dependencies" - run: | - set -xe - python -m pip install -r requirements/tox.pip + #- name: "Install dependencies" + # run: | + # set -xe + # python -m pip install -r requirements/tox.pip + + - name: Install uv + uses: hynek/setup-cached-uv@v2 - name: "Run tox for ${{ matrix.python-version }}" run: | - python -m tox -- -rfsEX + uvx --with tox-uv tox -- -rfsEX - name: "Retry tox for ${{ matrix.python-version }}" if: failure() run: | # `exit 1` makes sure that the job remains red with flaky runs - python -m tox -- -rfsEX --lf -vvvvv && exit 1 + uvx --with tox-uv tox -- -rfsEX --lf -vvvvv && exit 1 # This job aggregates test results. It's the required check for branch protection. # https://github.com/marketplace/actions/alls-green#why