Skip to content

Commit 8e1e889

Browse files
committed
let uv handle tox top level
1 parent caf24ac commit 8e1e889

22 files changed

Lines changed: 281 additions & 84 deletions

.github/workflows/test-integrations-agents.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test openai_agents
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-ai-workflow.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test langchain-base
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-ai.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test anthropic
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-cloud.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,15 @@ jobs:
5252
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
5353
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5454
- name: Setup Test Env
55-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
56-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
55+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
56+
# tox-uv at test time, not to the workspace venv itself.
5757
env:
5858
UV_PYTHON_PREFERENCE: managed
5959
run: |
60-
uv tool install --python 3.13 --with tox-uv tox
61-
uv tool install --python 3.13 "coverage[toml]"
60+
uv sync
6261
- name: Erase coverage
6362
run: |
64-
coverage erase
63+
uv run coverage erase
6564
- name: Test aws_lambda
6665
run: |
6766
set -x # print commands that are executed

.github/workflows/test-integrations-common.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test common
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-dbs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ jobs:
6767
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
6868
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
6969
- name: Setup Test Env
70-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
71-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
70+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
71+
# tox-uv at test time, not to the workspace venv itself.
7272
env:
7373
UV_PYTHON_PREFERENCE: managed
7474
run: |
75-
uv tool install --python 3.13 --with tox-uv tox
76-
uv tool install --python 3.13 "coverage[toml]"
75+
uv sync
7776
- name: Erase coverage
7877
run: |
79-
coverage erase
78+
uv run coverage erase
8079
- name: Test asyncpg
8180
run: |
8281
set -x # print commands that are executed

.github/workflows/test-integrations-flags.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test launchdarkly
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-gevent.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test gevent
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-graphql.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test ariadne
6261
run: |
6362
set -x # print commands that are executed

.github/workflows/test-integrations-mcp.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,15 @@ jobs:
4848
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
4949
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
5050
- name: Setup Test Env
51-
# Pin tox + coverage to uv-managed Python 3.13 even when the job sets
52-
# UV_PYTHON_PREFERENCE=only-system for 3.6/3.7 (which only applies to tox-uv at test time).
51+
# The UV_PYTHON_PREFERENCE=only-system override for 3.6/3.7 only applies to
52+
# tox-uv at test time, not to the workspace venv itself.
5353
env:
5454
UV_PYTHON_PREFERENCE: managed
5555
run: |
56-
uv tool install --python 3.13 --with tox-uv tox
57-
uv tool install --python 3.13 "coverage[toml]"
56+
uv sync
5857
- name: Erase coverage
5958
run: |
60-
coverage erase
59+
uv run coverage erase
6160
- name: Test mcp
6261
run: |
6362
set -x # print commands that are executed

0 commit comments

Comments
 (0)