Skip to content

Commit 4a2abe6

Browse files
committed
chore: add flask 3.1 tox config
1 parent 635a42a commit 4a2abe6

File tree

6 files changed

+340
-191
lines changed

6 files changed

+340
-191
lines changed

.github/workflows/core_contrib_test_0.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,36 @@ jobs:
11631163
- name: Run tests
11641164
run: tox -e py39-test-instrumentation-flask-2 -- -ra
11651165

1166+
py39-test-instrumentation-flask-3:
1167+
name: instrumentation-flask-3
1168+
runs-on: ubuntu-latest
1169+
timeout-minutes: 30
1170+
steps:
1171+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
1172+
uses: actions/checkout@v4
1173+
with:
1174+
repository: open-telemetry/opentelemetry-python-contrib
1175+
ref: ${{ env.CONTRIB_REPO_SHA }}
1176+
1177+
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
1178+
uses: actions/checkout@v4
1179+
with:
1180+
repository: open-telemetry/opentelemetry-python
1181+
ref: ${{ env.CORE_REPO_SHA }}
1182+
path: opentelemetry-python
1183+
1184+
- name: Set up Python 3.9
1185+
uses: actions/setup-python@v5
1186+
with:
1187+
python-version: "3.9"
1188+
architecture: "x64"
1189+
1190+
- name: Install tox
1191+
run: pip install tox-uv
1192+
1193+
- name: Run tests
1194+
run: tox -e py39-test-instrumentation-flask-3 -- -ra
1195+
11661196
py39-test-instrumentation-urllib:
11671197
name: instrumentation-urllib
11681198
runs-on: ubuntu-latest

.github/workflows/test_0.yml

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -3889,6 +3889,25 @@ jobs:
38893889
- name: Run tests
38903890
run: tox -e py39-test-instrumentation-flask-2 -- -ra
38913891

3892+
py39-test-instrumentation-flask-3_ubuntu-latest:
3893+
name: instrumentation-flask-3 3.9 Ubuntu
3894+
runs-on: ubuntu-latest
3895+
timeout-minutes: 30
3896+
steps:
3897+
- name: Checkout repo @ SHA - ${{ github.sha }}
3898+
uses: actions/checkout@v4
3899+
3900+
- name: Set up Python 3.9
3901+
uses: actions/setup-python@v5
3902+
with:
3903+
python-version: "3.9"
3904+
3905+
- name: Install tox
3906+
run: pip install tox-uv
3907+
3908+
- name: Run tests
3909+
run: tox -e py39-test-instrumentation-flask-3 -- -ra
3910+
38923911
py310-test-instrumentation-flask-0_ubuntu-latest:
38933912
name: instrumentation-flask-0 3.10 Ubuntu
38943913
runs-on: ubuntu-latest
@@ -3946,6 +3965,25 @@ jobs:
39463965
- name: Run tests
39473966
run: tox -e py310-test-instrumentation-flask-2 -- -ra
39483967

3968+
py310-test-instrumentation-flask-3_ubuntu-latest:
3969+
name: instrumentation-flask-3 3.10 Ubuntu
3970+
runs-on: ubuntu-latest
3971+
timeout-minutes: 30
3972+
steps:
3973+
- name: Checkout repo @ SHA - ${{ github.sha }}
3974+
uses: actions/checkout@v4
3975+
3976+
- name: Set up Python 3.10
3977+
uses: actions/setup-python@v5
3978+
with:
3979+
python-version: "3.10"
3980+
3981+
- name: Install tox
3982+
run: pip install tox-uv
3983+
3984+
- name: Run tests
3985+
run: tox -e py310-test-instrumentation-flask-3 -- -ra
3986+
39493987
py311-test-instrumentation-flask-0_ubuntu-latest:
39503988
name: instrumentation-flask-0 3.11 Ubuntu
39513989
runs-on: ubuntu-latest
@@ -4003,6 +4041,25 @@ jobs:
40034041
- name: Run tests
40044042
run: tox -e py311-test-instrumentation-flask-2 -- -ra
40054043

4044+
py311-test-instrumentation-flask-3_ubuntu-latest:
4045+
name: instrumentation-flask-3 3.11 Ubuntu
4046+
runs-on: ubuntu-latest
4047+
timeout-minutes: 30
4048+
steps:
4049+
- name: Checkout repo @ SHA - ${{ github.sha }}
4050+
uses: actions/checkout@v4
4051+
4052+
- name: Set up Python 3.11
4053+
uses: actions/setup-python@v5
4054+
with:
4055+
python-version: "3.11"
4056+
4057+
- name: Install tox
4058+
run: pip install tox-uv
4059+
4060+
- name: Run tests
4061+
run: tox -e py311-test-instrumentation-flask-3 -- -ra
4062+
40064063
py312-test-instrumentation-flask-0_ubuntu-latest:
40074064
name: instrumentation-flask-0 3.12 Ubuntu
40084065
runs-on: ubuntu-latest
@@ -4060,6 +4117,25 @@ jobs:
40604117
- name: Run tests
40614118
run: tox -e py312-test-instrumentation-flask-2 -- -ra
40624119

4120+
py312-test-instrumentation-flask-3_ubuntu-latest:
4121+
name: instrumentation-flask-3 3.12 Ubuntu
4122+
runs-on: ubuntu-latest
4123+
timeout-minutes: 30
4124+
steps:
4125+
- name: Checkout repo @ SHA - ${{ github.sha }}
4126+
uses: actions/checkout@v4
4127+
4128+
- name: Set up Python 3.12
4129+
uses: actions/setup-python@v5
4130+
with:
4131+
python-version: "3.12"
4132+
4133+
- name: Install tox
4134+
run: pip install tox-uv
4135+
4136+
- name: Run tests
4137+
run: tox -e py312-test-instrumentation-flask-3 -- -ra
4138+
40634139
py313-test-instrumentation-flask-0_ubuntu-latest:
40644140
name: instrumentation-flask-0 3.13 Ubuntu
40654141
runs-on: ubuntu-latest
@@ -4117,6 +4193,25 @@ jobs:
41174193
- name: Run tests
41184194
run: tox -e py313-test-instrumentation-flask-2 -- -ra
41194195

4196+
py313-test-instrumentation-flask-3_ubuntu-latest:
4197+
name: instrumentation-flask-3 3.13 Ubuntu
4198+
runs-on: ubuntu-latest
4199+
timeout-minutes: 30
4200+
steps:
4201+
- name: Checkout repo @ SHA - ${{ github.sha }}
4202+
uses: actions/checkout@v4
4203+
4204+
- name: Set up Python 3.13
4205+
uses: actions/setup-python@v5
4206+
with:
4207+
python-version: "3.13"
4208+
4209+
- name: Install tox
4210+
run: pip install tox-uv
4211+
4212+
- name: Run tests
4213+
run: tox -e py313-test-instrumentation-flask-3 -- -ra
4214+
41204215
pypy3-test-instrumentation-flask-0_ubuntu-latest:
41214216
name: instrumentation-flask-0 pypy-3.9 Ubuntu
41224217
runs-on: ubuntu-latest
@@ -4686,98 +4781,3 @@ jobs:
46864781

46874782
- name: Run tests
46884783
run: tox -e py311-test-instrumentation-starlette-oldest -- -ra
4689-
4690-
py311-test-instrumentation-starlette-latest_ubuntu-latest:
4691-
name: instrumentation-starlette-latest 3.11 Ubuntu
4692-
runs-on: ubuntu-latest
4693-
timeout-minutes: 30
4694-
steps:
4695-
- name: Checkout repo @ SHA - ${{ github.sha }}
4696-
uses: actions/checkout@v4
4697-
4698-
- name: Set up Python 3.11
4699-
uses: actions/setup-python@v5
4700-
with:
4701-
python-version: "3.11"
4702-
4703-
- name: Install tox
4704-
run: pip install tox-uv
4705-
4706-
- name: Run tests
4707-
run: tox -e py311-test-instrumentation-starlette-latest -- -ra
4708-
4709-
py312-test-instrumentation-starlette-oldest_ubuntu-latest:
4710-
name: instrumentation-starlette-oldest 3.12 Ubuntu
4711-
runs-on: ubuntu-latest
4712-
timeout-minutes: 30
4713-
steps:
4714-
- name: Checkout repo @ SHA - ${{ github.sha }}
4715-
uses: actions/checkout@v4
4716-
4717-
- name: Set up Python 3.12
4718-
uses: actions/setup-python@v5
4719-
with:
4720-
python-version: "3.12"
4721-
4722-
- name: Install tox
4723-
run: pip install tox-uv
4724-
4725-
- name: Run tests
4726-
run: tox -e py312-test-instrumentation-starlette-oldest -- -ra
4727-
4728-
py312-test-instrumentation-starlette-latest_ubuntu-latest:
4729-
name: instrumentation-starlette-latest 3.12 Ubuntu
4730-
runs-on: ubuntu-latest
4731-
timeout-minutes: 30
4732-
steps:
4733-
- name: Checkout repo @ SHA - ${{ github.sha }}
4734-
uses: actions/checkout@v4
4735-
4736-
- name: Set up Python 3.12
4737-
uses: actions/setup-python@v5
4738-
with:
4739-
python-version: "3.12"
4740-
4741-
- name: Install tox
4742-
run: pip install tox-uv
4743-
4744-
- name: Run tests
4745-
run: tox -e py312-test-instrumentation-starlette-latest -- -ra
4746-
4747-
py313-test-instrumentation-starlette-oldest_ubuntu-latest:
4748-
name: instrumentation-starlette-oldest 3.13 Ubuntu
4749-
runs-on: ubuntu-latest
4750-
timeout-minutes: 30
4751-
steps:
4752-
- name: Checkout repo @ SHA - ${{ github.sha }}
4753-
uses: actions/checkout@v4
4754-
4755-
- name: Set up Python 3.13
4756-
uses: actions/setup-python@v5
4757-
with:
4758-
python-version: "3.13"
4759-
4760-
- name: Install tox
4761-
run: pip install tox-uv
4762-
4763-
- name: Run tests
4764-
run: tox -e py313-test-instrumentation-starlette-oldest -- -ra
4765-
4766-
py313-test-instrumentation-starlette-latest_ubuntu-latest:
4767-
name: instrumentation-starlette-latest 3.13 Ubuntu
4768-
runs-on: ubuntu-latest
4769-
timeout-minutes: 30
4770-
steps:
4771-
- name: Checkout repo @ SHA - ${{ github.sha }}
4772-
uses: actions/checkout@v4
4773-
4774-
- name: Set up Python 3.13
4775-
uses: actions/setup-python@v5
4776-
with:
4777-
python-version: "3.13"
4778-
4779-
- name: Install tox
4780-
run: pip install tox-uv
4781-
4782-
- name: Run tests
4783-
run: tox -e py313-test-instrumentation-starlette-latest -- -ra

0 commit comments

Comments
 (0)