Skip to content

Commit d096602

Browse files
committed
Move Misc to toxgen
1 parent 3ac285d commit d096602

File tree

4 files changed

+29
-143
lines changed

4 files changed

+29
-143
lines changed

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

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -22,82 +22,6 @@ env:
2222
CACHED_BUILD_PATHS: |
2323
${{ github.workspace }}/dist-serverless
2424
jobs:
25-
test-misc-latest:
26-
name: Misc (latest)
27-
timeout-minutes: 30
28-
runs-on: ${{ matrix.os }}
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
python-version: ["3.6","3.7","3.8","3.12","3.13"]
33-
# python3.6 reached EOL and is no longer being supported on
34-
# new versions of hosted runners on Github Actions
35-
# ubuntu-20.04 is the last version that supported python3.6
36-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
38-
steps:
39-
- uses: actions/[email protected]
40-
- uses: actions/setup-python@v5
41-
with:
42-
python-version: ${{ matrix.python-version }}
43-
allow-prereleases: true
44-
- name: Setup Test Env
45-
run: |
46-
pip install "coverage[toml]" tox
47-
- name: Erase coverage
48-
run: |
49-
coverage erase
50-
- name: Test loguru latest
51-
run: |
52-
set -x # print commands that are executed
53-
./scripts/runtox.sh "py${{ matrix.python-version }}-loguru-latest"
54-
- name: Test opentelemetry latest
55-
run: |
56-
set -x # print commands that are executed
57-
./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry-latest"
58-
- name: Test potel latest
59-
run: |
60-
set -x # print commands that are executed
61-
./scripts/runtox.sh "py${{ matrix.python-version }}-potel-latest"
62-
- name: Test pure_eval latest
63-
run: |
64-
set -x # print commands that are executed
65-
./scripts/runtox.sh "py${{ matrix.python-version }}-pure_eval-latest"
66-
- name: Test trytond latest
67-
run: |
68-
set -x # print commands that are executed
69-
./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest"
70-
- name: Test typer latest
71-
run: |
72-
set -x # print commands that are executed
73-
./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest"
74-
- name: Generate coverage XML (Python 3.6)
75-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
76-
run: |
77-
export COVERAGE_RCFILE=.coveragerc36
78-
coverage combine .coverage-sentry-*
79-
coverage xml --ignore-errors
80-
- name: Generate coverage XML
81-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
82-
run: |
83-
coverage combine .coverage-sentry-*
84-
coverage xml
85-
- name: Upload coverage to Codecov
86-
if: ${{ !cancelled() }}
87-
uses: codecov/[email protected]
88-
with:
89-
token: ${{ secrets.CODECOV_TOKEN }}
90-
files: coverage.xml
91-
# make sure no plugins alter our coverage reports
92-
plugin: noop
93-
verbose: true
94-
- name: Upload test results to Codecov
95-
if: ${{ !cancelled() }}
96-
uses: codecov/test-results-action@v1
97-
with:
98-
token: ${{ secrets.CODECOV_TOKEN }}
99-
files: .junitxml
100-
verbose: true
10125
test-misc-pinned:
10226
name: Misc (pinned)
10327
timeout-minutes: 30

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"langchain_notiktoken",
8585
"launchdarkly",
8686
"litestar",
87-
"loguru",
8887
"openai",
8988
"openai_notiktoken",
9089
"openfeature",
@@ -104,8 +103,6 @@
104103
"sqlalchemy",
105104
"strawberry",
106105
"tornado",
107-
"trytond",
108-
"typer",
109106
"unleash",
110107
}
111108

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ envlist =
185185
{py3.8,py3.11,py3.12}-litestar-v{2.12}
186186
{py3.8,py3.11,py3.12}-litestar-latest
187187

188-
# Loguru
189-
{py3.6,py3.11,py3.12}-loguru-v{0.5}
190-
{py3.6,py3.12,py3.13}-loguru-latest
191-
192188
# OpenAI
193189
{py3.9,py3.11,py3.12}-openai-v1.0
194190
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -286,17 +282,6 @@ envlist =
286282
{py3.8,py3.11,py3.12}-tornado-v{6.2}
287283
{py3.8,py3.11,py3.12}-tornado-latest
288284

289-
# Trytond
290-
{py3.6}-trytond-v{4}
291-
{py3.6,py3.8}-trytond-v{5}
292-
{py3.6,py3.11}-trytond-v{6}
293-
{py3.8,py3.11,py3.12}-trytond-v{7}
294-
{py3.8,py3.12,py3.13}-trytond-latest
295-
296-
# Typer
297-
{py3.7,py3.12,py3.13}-typer-v{0.15}
298-
{py3.7,py3.12,py3.13}-typer-latest
299-
300285
# Unleash
301286
{py3.8,py3.12,py3.13}-unleash-v6.0.1
302287
{py3.8,py3.12,py3.13}-unleash-latest
@@ -571,10 +556,6 @@ deps =
571556
litestar-v2.12: litestar~=2.12.0
572557
litestar-latest: litestar
573558
574-
# Loguru
575-
loguru-v0.5: loguru~=0.5.0
576-
loguru-latest: loguru
577-
578559
# OpenAI
579560
openai: pytest-asyncio
580561
openai-v1.0: openai~=1.0.0
@@ -747,19 +728,6 @@ deps =
747728
tornado-v6.2: tornado~=6.2.0
748729
tornado-latest: tornado
749730
750-
# Trytond
751-
trytond: werkzeug
752-
trytond-v4: werkzeug<1.0
753-
trytond-v4: trytond~=4.0
754-
trytond-v5: trytond~=5.0
755-
trytond-v6: trytond~=6.0
756-
trytond-v7: trytond~=7.0
757-
trytond-latest: trytond
758-
759-
# Typer
760-
typer-v0.15: typer~=0.15.0
761-
typer-latest: typer
762-
763731
# === Integrations - Auto-generated ===
764732
# These come from the populate_tox.py script. Eventually we should move all
765733
# integration tests there.

tox.ini

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,6 @@ envlist =
185185
{py3.8,py3.11,py3.12}-litestar-v{2.12}
186186
{py3.8,py3.11,py3.12}-litestar-latest
187187

188-
# Loguru
189-
{py3.6,py3.11,py3.12}-loguru-v{0.5}
190-
{py3.6,py3.12,py3.13}-loguru-latest
191-
192188
# OpenAI
193189
{py3.9,py3.11,py3.12}-openai-v1.0
194190
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -286,17 +282,6 @@ envlist =
286282
{py3.8,py3.11,py3.12}-tornado-v{6.2}
287283
{py3.8,py3.11,py3.12}-tornado-latest
288284

289-
# Trytond
290-
{py3.6}-trytond-v{4}
291-
{py3.6,py3.8}-trytond-v{5}
292-
{py3.6,py3.11}-trytond-v{6}
293-
{py3.8,py3.11,py3.12}-trytond-v{7}
294-
{py3.8,py3.12,py3.13}-trytond-latest
295-
296-
# Typer
297-
{py3.7,py3.12,py3.13}-typer-v{0.15}
298-
{py3.7,py3.12,py3.13}-typer-latest
299-
300285
# Unleash
301286
{py3.8,py3.12,py3.13}-unleash-v6.0.1
302287
{py3.8,py3.12,py3.13}-unleash-latest
@@ -305,6 +290,20 @@ envlist =
305290
# These come from the populate_tox.py script. Eventually we should move all
306291
# integration tests there.
307292

293+
# ~~~ Misc ~~~
294+
{py3.6,py3.7,py3.8}-loguru-v0.5.3
295+
{py3.6,py3.9,py3.10}-loguru-v0.6.0
296+
{py3.6,py3.12,py3.13}-loguru-v0.7.3
297+
298+
{py3.6,py3.7}-trytond-v5.0.63
299+
{py3.6,py3.7,py3.8}-trytond-v5.8.16
300+
{py3.8,py3.10,py3.11}-trytond-v6.8.17
301+
{py3.8,py3.11,py3.12}-trytond-v7.0.9
302+
{py3.8,py3.11,py3.12}-trytond-v7.4.4
303+
304+
{py3.7,py3.11,py3.12}-typer-v0.15.1
305+
306+
308307

309308
[testenv]
310309
deps =
@@ -561,10 +560,6 @@ deps =
561560
litestar-v2.12: litestar~=2.12.0
562561
litestar-latest: litestar
563562

564-
# Loguru
565-
loguru-v0.5: loguru~=0.5.0
566-
loguru-latest: loguru
567-
568563
# OpenAI
569564
openai: pytest-asyncio
570565
openai-v1.0: openai~=1.0.0
@@ -737,23 +732,25 @@ deps =
737732
tornado-v6.2: tornado~=6.2.0
738733
tornado-latest: tornado
739734

740-
# Trytond
741-
trytond: werkzeug
742-
trytond-v4: werkzeug<1.0
743-
trytond-v4: trytond~=4.0
744-
trytond-v5: trytond~=5.0
745-
trytond-v6: trytond~=6.0
746-
trytond-v7: trytond~=7.0
747-
trytond-latest: trytond
748-
749-
# Typer
750-
typer-v0.15: typer~=0.15.0
751-
typer-latest: typer
752-
753735
# === Integrations - Auto-generated ===
754736
# These come from the populate_tox.py script. Eventually we should move all
755737
# integration tests there.
756738

739+
# ~~~ Misc ~~~
740+
loguru-v0.5.3: loguru==0.5.3
741+
loguru-v0.6.0: loguru==0.6.0
742+
loguru-v0.7.3: loguru==0.7.3
743+
744+
trytond-v5.0.63: trytond==5.0.63
745+
trytond-v5.8.16: trytond==5.8.16
746+
trytond-v6.8.17: trytond==6.8.17
747+
trytond-v7.0.9: trytond==7.0.9
748+
trytond-v7.4.4: trytond==7.4.4
749+
trytond: werkzeug
750+
751+
typer-v0.15.1: typer==0.15.1
752+
753+
757754

758755
setenv =
759756
PYTHONDONTWRITEBYTECODE=1

0 commit comments

Comments
 (0)