Skip to content

Tests: use uv with tox #11851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- run: git submodule update --init
- run: sudo apt update
- run: sudo apt install -y rclone
- run: pip install --user tox
- run: pip install --user tox tox-uv
- run: tox --version
- run: tox -e py310
- codecov/upload

Expand All @@ -50,7 +51,8 @@ jobs:
- run: git submodule update --init
- run: sudo apt update
- run: sudo apt install -y rclone
- run: pip install --user tox
- run: pip install --user tox tox-uv
- run: tox --version
- run: tox -e ext-theme

tests-embedapi:
Expand All @@ -60,7 +62,7 @@ jobs:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: pip install --user 'tox<4'
- run: pip install --user tox tox-uv
- run: tox --version
- run: tox -c tox.embedapi.ini

Expand All @@ -81,7 +83,8 @@ jobs:
- restore_cache:
keys:
- pre-commit-cache-{{ checksum "pre-commit-cache-key.txt" }}
- run: pip install --user tox
- run: pip install --user tox tox-uv
- run: tox --version
- run: tox -e pre-commit
- run: tox -e migrations
- node/install:
Expand Down
1 change: 1 addition & 0 deletions requirements/docker.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# run tests
tox
tox-uv

# Used together with structlog to have nicer logs locally
rich
Expand Down
7 changes: 7 additions & 0 deletions requirements/docker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ packaging==24.2
# gunicorn
# pyproject-api
# tox
# tox-uv
parso==0.8.4
# via jedi
pdbpp==0.10.3
Expand Down Expand Up @@ -451,6 +452,10 @@ tomli==2.2.1
# pyproject-api
# tox
tox==4.23.2
# via
# -r requirements/docker.in
# tox-uv
tox-uv==1.16.1
# via -r requirements/docker.in
traitlets==5.14.3
# via
Expand Down Expand Up @@ -496,6 +501,8 @@ urllib3==2.2.3
# requests
user-agents==2.2.0
# via -r requirements/pip.txt
uv==0.5.8
# via tox-uv
vine==5.1.0
# via
# -r requirements/pip.txt
Expand Down
4 changes: 2 additions & 2 deletions tox.embedapi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ install_command =
# Sphinx from `requirements/pip.txt` but from the `deps=` field.
sh -c ' \
cat {toxinidir}/requirements/testing.txt | grep -v "Sphinx" > {toxinidir}/requirements/embedapi.txt; \
pip install -r {toxinidir}/requirements/embedapi.txt; \
pip install $*;' -- {opts} {packages}
uv pip install -r {toxinidir}/requirements/embedapi.txt; \
uv pip install $*;' -- {opts} {packages}
deps =
sphinx-24: Sphinx~=2.4.0
sphinx-35: Sphinx~=3.5.0
Expand Down