Skip to content

Commit 52db503

Browse files
committed
Test Python 3.7 and 3.8 separately
The package cannot be built with these Python versions since they do not support the required setuptools version. So we just test the pre-built wheels in dist.
1 parent 037fb09 commit 52db503

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.github/workflows/test_with_tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
10+
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
1111

1212
steps:
1313
- uses: actions/checkout@v4

tox.ini

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
[tox]
2-
envlist = py3{7,8,9,10,11,12,13}, ruff, manifest, docs, spell
2+
envlist = py3{9,10,11,12,13}, ruff, manifest, docs, spell
3+
4+
[testenv:py37]
5+
skip_install = true
6+
deps = dist/dbutils-3.1.1-py3-none-any.whl[tests]
7+
commands = pytest {posargs}
8+
9+
[testenv:py38]
10+
skip_install = true
11+
deps = dist/dbutils-3.1.1-py3-none-any.whl[tests]
12+
commands = pytest {posargs}
313

414
[testenv]
515
setenv =
616
PYTHONPATH = {toxinidir}
717
extras = tests
8-
commands =
9-
pytest {posargs}
18+
commands = pytest {posargs}
1019

1120
[testenv:spell]
1221
basepython = python3.12
1322
deps = codespell
14-
commands =
15-
codespell .
23+
commands = codespell .
1624

1725
[testenv:ruff]
1826
basepython = python3.12
1927
deps = ruff
20-
commands =
21-
ruff check .
28+
commands = ruff check .
2229

2330
[testenv:manifest]
2431
basepython = python3.12
2532
deps = check-manifest
26-
commands =
27-
check-manifest -v
33+
commands = check-manifest -v
2834

2935
[testenv:docs]
3036
basepython = python3.12
3137
extras = docs
3238
changedir = docs
33-
commands =
34-
python make.py
39+
commands = python make.py

0 commit comments

Comments
 (0)