Skip to content

Commit 267b302

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 82b0e94 commit 267b302

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
@@ -132,20 +132,23 @@ jobs:
132132
# python -c "import urllib.request as r; exec(r.urlopen('https://bit.ly/pydoctor').read())"
133133
env | sort
134134
135-
- name: "Install dependencies"
136-
run: |
137-
set -xe
138-
python -m pip install -r requirements/tox.pip
135+
#- name: "Install dependencies"
136+
# run: |
137+
# set -xe
138+
# python -m pip install -r requirements/tox.pip
139+
140+
- name: Install uv
141+
uses: hynek/setup-cached-uv@v2
139142

140143
- name: "Run tox for ${{ matrix.python-version }}"
141144
run: |
142-
python -m tox -- -rfsEX
145+
uvx --with tox-uv tox -- -rfsEX
143146
144147
- name: "Retry tox for ${{ matrix.python-version }}"
145148
if: failure()
146149
run: |
147150
# `exit 1` makes sure that the job remains red with flaky runs
148-
python -m tox -- -rfsEX --lf -vvvvv && exit 1
151+
uvx --with tox-uv tox -- -rfsEX --lf -vvvvv && exit 1
149152
150153
# This job aggregates test results. It's the required check for branch protection.
151154
# https://github.com/marketplace/actions/alls-green#why

0 commit comments

Comments
 (0)