Skip to content

Commit 0de666a

Browse files
committed
build: use tox-uv to speed test runs
Following the guidance in https://dev.to/hugovk/speed-up-ci-with-uv-53n1
1 parent 864ef60 commit 0de666a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/testsuite.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,23 @@ jobs:
9898
# python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
9999
env | sort
100100
101-
- name: "Install dependencies"
102-
run: |
103-
set -xe
104-
python -m pip install -r requirements/tox.pip
101+
#- name: "Install dependencies"
102+
# run: |
103+
# set -xe
104+
# python -m pip install -r requirements/tox.pip
105+
106+
- name: Install uv
107+
uses: hynek/setup-cached-uv@v2
105108

106109
- name: "Run tox for ${{ matrix.python-version }}"
107110
run: |
108-
python -m tox -- -rfsEX
111+
uvx --with tox-uv tox -- -rfsEX
109112
110113
- name: "Retry tox for ${{ matrix.python-version }}"
111114
if: failure()
112115
run: |
113116
# `exit 1` makes sure that the job remains red with flaky runs
114-
python -m tox -- -rfsEX --lf -vvvvv && exit 1
117+
uvx --with tox-uv tox -- -rfsEX --lf -vvvvv && exit 1
115118
116119
# This job aggregates test results. It's the required check for branch protection.
117120
# https://github.com/marketplace/actions/alls-green#why

0 commit comments

Comments
 (0)