Skip to content

Commit cd666b4

Browse files
committed
fix preference after runtox
1 parent 33f5eed commit cd666b4

17 files changed

Lines changed: 27 additions & 146 deletions

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test openai_agents
@@ -69,8 +63,6 @@ jobs:
6963
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
7064
- name: Generate coverage XML
7165
if: ${{ !cancelled() }}
72-
env:
73-
UV_PYTHON_PREFERENCE: managed
7466
run: |
7567
uv run coverage combine .coverage-sentry-*
7668
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test langchain-base
@@ -73,8 +67,6 @@ jobs:
7367
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
7468
- name: Generate coverage XML
7569
if: ${{ !cancelled() }}
76-
env:
77-
UV_PYTHON_PREFERENCE: managed
7870
run: |
7971
uv run coverage combine .coverage-sentry-*
8072
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test anthropic
@@ -89,8 +83,6 @@ jobs:
8983
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
9084
- name: Generate coverage XML
9185
if: ${{ !cancelled() }}
92-
env:
93-
UV_PYTHON_PREFERENCE: managed
9486
run: |
9587
uv run coverage combine .coverage-sentry-*
9688
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
options: --privileged # Required for Docker-in-Docker operations
4141
env:
4242
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
43-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
43+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4444
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4545
steps:
4646
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -52,15 +52,9 @@ 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-
# 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.
57-
env:
58-
UV_PYTHON_PREFERENCE: managed
5955
run: |
6056
uv sync
6157
- name: Erase coverage
62-
env:
63-
UV_PYTHON_PREFERENCE: managed
6458
run: |
6559
uv run coverage erase
6660
- name: Test aws_lambda
@@ -85,8 +79,6 @@ jobs:
8579
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
8680
- name: Generate coverage XML
8781
if: ${{ !cancelled() }}
88-
env:
89-
UV_PYTHON_PREFERENCE: managed
9082
run: |
9183
uv run coverage combine .coverage-sentry-*
9284
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test common
@@ -65,8 +59,6 @@ jobs:
6559
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
6660
- name: Generate coverage XML
6761
if: ${{ !cancelled() }}
68-
env:
69-
UV_PYTHON_PREFERENCE: managed
7062
run: |
7163
uv run coverage combine .coverage-sentry-*
7264
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- 5432:5432
5151
env:
5252
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
53-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
53+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
5454
SENTRY_PYTHON_TEST_POSTGRES_HOST: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'postgres' || 'localhost' }}
5555
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres
5656
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry
@@ -67,15 +67,9 @@ 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-
# 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.
72-
env:
73-
UV_PYTHON_PREFERENCE: managed
7470
run: |
7571
uv sync
7672
- name: Erase coverage
77-
env:
78-
UV_PYTHON_PREFERENCE: managed
7973
run: |
8074
uv run coverage erase
8175
- name: Test asyncpg
@@ -104,8 +98,6 @@ jobs:
10498
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy"
10599
- name: Generate coverage XML
106100
if: ${{ !cancelled() }}
107-
env:
108-
UV_PYTHON_PREFERENCE: managed
109101
run: |
110102
uv run coverage combine .coverage-sentry-*
111103
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test launchdarkly
@@ -77,8 +71,6 @@ jobs:
7771
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash"
7872
- name: Generate coverage XML
7973
if: ${{ !cancelled() }}
80-
env:
81-
UV_PYTHON_PREFERENCE: managed
8274
run: |
8375
uv run coverage combine .coverage-sentry-*
8476
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test gevent
@@ -65,8 +59,6 @@ jobs:
6559
./scripts/runtox.sh "py${{ matrix.python-version }}-gevent"
6660
- name: Generate coverage XML
6761
if: ${{ !cancelled() }}
68-
env:
69-
UV_PYTHON_PREFERENCE: managed
7062
run: |
7163
uv run coverage combine .coverage-sentry-*
7264
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test ariadne
@@ -77,8 +71,6 @@ jobs:
7771
./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry"
7872
- name: Generate coverage XML
7973
if: ${{ !cancelled() }}
80-
env:
81-
UV_PYTHON_PREFERENCE: managed
8274
run: |
8375
uv run coverage combine .coverage-sentry-*
8476
uv run coverage xml

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [ubuntu-22.04]
3737
env:
3838
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
39-
UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
39+
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
4040
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
4141
steps:
4242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -48,15 +48,9 @@ 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-
# 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.
53-
env:
54-
UV_PYTHON_PREFERENCE: managed
5551
run: |
5652
uv sync
5753
- name: Erase coverage
58-
env:
59-
UV_PYTHON_PREFERENCE: managed
6054
run: |
6155
uv run coverage erase
6256
- name: Test mcp
@@ -69,8 +63,6 @@ jobs:
6963
./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp"
7064
- name: Generate coverage XML
7165
if: ${{ !cancelled() }}
72-
env:
73-
UV_PYTHON_PREFERENCE: managed
7466
run: |
7567
uv run coverage combine .coverage-sentry-*
7668
uv run coverage xml

0 commit comments

Comments
 (0)