Skip to content

Commit 1997dc2

Browse files
committed
let uv handle tox top level
1 parent 4ac4428 commit 1997dc2

22 files changed

Lines changed: 377 additions & 116 deletions

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test openai_agents
6263
run: |
6364
set -x # print commands that are executed
@@ -68,9 +69,11 @@ jobs:
6869
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
6970
- name: Generate coverage XML
7071
if: ${{ !cancelled() }}
72+
env:
73+
UV_PYTHON_PREFERENCE: managed
7174
run: |
72-
coverage combine .coverage-sentry-*
73-
coverage xml
75+
uv run coverage combine .coverage-sentry-*
76+
uv run coverage xml
7477
- name: Parse and Upload Coverage
7578
if: ${{ !cancelled() }}
7679
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test langchain-base
6263
run: |
6364
set -x # print commands that are executed
@@ -72,9 +73,11 @@ jobs:
7273
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
7374
- name: Generate coverage XML
7475
if: ${{ !cancelled() }}
76+
env:
77+
UV_PYTHON_PREFERENCE: managed
7578
run: |
76-
coverage combine .coverage-sentry-*
77-
coverage xml
79+
uv run coverage combine .coverage-sentry-*
80+
uv run coverage xml
7881
- name: Parse and Upload Coverage
7982
if: ${{ !cancelled() }}
8083
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test anthropic
6263
run: |
6364
set -x # print commands that are executed
@@ -88,9 +89,11 @@ jobs:
8889
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
8990
- name: Generate coverage XML
9091
if: ${{ !cancelled() }}
92+
env:
93+
UV_PYTHON_PREFERENCE: managed
9194
run: |
92-
coverage combine .coverage-sentry-*
93-
coverage xml
95+
uv run coverage combine .coverage-sentry-*
96+
uv run coverage xml
9497
- name: Parse and Upload Coverage
9598
if: ${{ !cancelled() }}
9699
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,17 @@ 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
62+
env:
63+
UV_PYTHON_PREFERENCE: managed
6364
run: |
64-
coverage erase
65+
uv run coverage erase
6566
- name: Test aws_lambda
6667
run: |
6768
set -x # print commands that are executed
@@ -84,9 +85,11 @@ jobs:
8485
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
8586
- name: Generate coverage XML
8687
if: ${{ !cancelled() }}
88+
env:
89+
UV_PYTHON_PREFERENCE: managed
8790
run: |
88-
coverage combine .coverage-sentry-*
89-
coverage xml
91+
uv run coverage combine .coverage-sentry-*
92+
uv run coverage xml
9093
- name: Parse and Upload Coverage
9194
if: ${{ !cancelled() }}
9295
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,28 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test common
6263
run: |
6364
set -x # print commands that are executed
6465
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
6566
- name: Generate coverage XML
6667
if: ${{ !cancelled() }}
68+
env:
69+
UV_PYTHON_PREFERENCE: managed
6770
run: |
68-
coverage combine .coverage-sentry-*
69-
coverage xml
71+
uv run coverage combine .coverage-sentry-*
72+
uv run coverage xml
7073
- name: Parse and Upload Coverage
7174
if: ${{ !cancelled() }}
7275
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,17 @@ 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
77+
env:
78+
UV_PYTHON_PREFERENCE: managed
7879
run: |
79-
coverage erase
80+
uv run coverage erase
8081
- name: Test asyncpg
8182
run: |
8283
set -x # print commands that are executed
@@ -103,9 +104,11 @@ jobs:
103104
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy"
104105
- name: Generate coverage XML
105106
if: ${{ !cancelled() }}
107+
env:
108+
UV_PYTHON_PREFERENCE: managed
106109
run: |
107-
coverage combine .coverage-sentry-*
108-
coverage xml
110+
uv run coverage combine .coverage-sentry-*
111+
uv run coverage xml
109112
- name: Parse and Upload Coverage
110113
if: ${{ !cancelled() }}
111114
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test launchdarkly
6263
run: |
6364
set -x # print commands that are executed
@@ -76,9 +77,11 @@ jobs:
7677
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash"
7778
- name: Generate coverage XML
7879
if: ${{ !cancelled() }}
80+
env:
81+
UV_PYTHON_PREFERENCE: managed
7982
run: |
80-
coverage combine .coverage-sentry-*
81-
coverage xml
83+
uv run coverage combine .coverage-sentry-*
84+
uv run coverage xml
8285
- name: Parse and Upload Coverage
8386
if: ${{ !cancelled() }}
8487
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,28 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test gevent
6263
run: |
6364
set -x # print commands that are executed
6465
./scripts/runtox.sh "py${{ matrix.python-version }}-gevent"
6566
- name: Generate coverage XML
6667
if: ${{ !cancelled() }}
68+
env:
69+
UV_PYTHON_PREFERENCE: managed
6770
run: |
68-
coverage combine .coverage-sentry-*
69-
coverage xml
71+
uv run coverage combine .coverage-sentry-*
72+
uv run coverage xml
7073
- name: Parse and Upload Coverage
7174
if: ${{ !cancelled() }}
7275
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test ariadne
6263
run: |
6364
set -x # print commands that are executed
@@ -76,9 +77,11 @@ jobs:
7677
./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry"
7778
- name: Generate coverage XML
7879
if: ${{ !cancelled() }}
80+
env:
81+
UV_PYTHON_PREFERENCE: managed
7982
run: |
80-
coverage combine .coverage-sentry-*
81-
coverage xml
83+
uv run coverage combine .coverage-sentry-*
84+
uv run coverage xml
8285
- name: Parse and Upload Coverage
8386
if: ${{ !cancelled() }}
8487
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,17 @@ 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
58+
env:
59+
UV_PYTHON_PREFERENCE: managed
5960
run: |
60-
coverage erase
61+
uv run coverage erase
6162
- name: Test mcp
6263
run: |
6364
set -x # print commands that are executed
@@ -68,9 +69,11 @@ jobs:
6869
./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp"
6970
- name: Generate coverage XML
7071
if: ${{ !cancelled() }}
72+
env:
73+
UV_PYTHON_PREFERENCE: managed
7174
run: |
72-
coverage combine .coverage-sentry-*
73-
coverage xml
75+
uv run coverage combine .coverage-sentry-*
76+
uv run coverage xml
7477
- name: Parse and Upload Coverage
7578
if: ${{ !cancelled() }}
7679
uses: getsentry/codecov-action@d90e69cdf071dfbb0430159125321dc09c424d4c # main

0 commit comments

Comments
 (0)