Skip to content

Commit 29a52f5

Browse files
committed
updates CI and tox
1 parent 3450ae3 commit 29a52f5

File tree

4 files changed

+786
-40
lines changed

4 files changed

+786
-40
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
env:
22-
- "3.13"
22+
# - "3.13"
2323
- "3.12"
24-
- "3.11"
25-
- "3.10"
26-
- "3.9"
27-
- "3.8"
28-
- type
29-
- dev
30-
- pkg_meta
24+
# - "3.11"
25+
# - "3.10"
26+
# - "3.9"
27+
# - "3.8"
28+
# - type
29+
# - dev
30+
# - pkg_meta
3131
steps:
3232
- uses: actions/checkout@v4
3333
with:
@@ -46,13 +46,13 @@ jobs:
4646
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
4747
run: uv python install --python-preference only-managed ${{ matrix.env }}
4848

49-
- name: Setup test suite
50-
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
49+
# - name: Setup test suite
50+
# run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
5151

5252
- name: Run test suite
53-
run: tox run --skip-pkg-install -e ${{ matrix.env }}
54-
COV_CMD=$(if [ ${{ matrix.env }} == 3.12 ]; then echo "--cov=pytest_echo --cov-report=xml"; else echo ; fi) tox run --skip-pkg-install -e ${{ matrix.env }} | paste -sd "," -)
55-
53+
run:
54+
COV_CMD=$(if [ ${{ matrix.env }} == 3.12 ]; then echo "--cov=pytest_echo --cov-report=xml"; else echo ; fi)
55+
tox run --skip-pkg-install -e ${{ matrix.env }} $COV_CMD
5656
env:
5757
PYTEST_ADDOPTS: "-vv --durations=20"
5858
DIFF_AGAINST: HEAD

pyproject.toml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ requires = [
77

88
[project]
99
name = "pytest-echo"
10-
description = "pytest plugin that allows you to dump environment variables, package version and generic attributes"
10+
description = "pytest plugin that allows to dump environment variables, package version and generic attributes"
1111
readme = "README.md"
1212
keywords = [
1313
"echo",
1414
"pytest",
1515
]
1616
license.file = "LICENSE"
17+
1718
maintainers = [
1819
{ name = "Stefano Apostolico", email = "[email protected]" },
1920
]
2021
requires-python = ">=3.8"
22+
2123
classifiers = [
2224
"Development Status :: 5 - Production/Stable",
2325
"Intended Audience :: Developers",
@@ -41,23 +43,21 @@ dependencies = [
4143
"pytest>=8.3.3",
4244
"tomli>=2.0.1; python_version<'3.11'",
4345
]
44-
optional-dependencies.testing = [
45-
"covdefaults>=2.3",
46-
"coverage>=7.6.1",
47-
"pytest-mock>=3.14",
48-
]
46+
4947
urls.Homepage = "https://github.com/pytest-dev/pytest-echo"
5048
urls.Source = "https://github.com/pytest-dev/pytest-echo"
5149
urls.Tracker = "https://github.com/pytest-dev/pytest-echo/issues"
52-
5350
entry-points.pytest11.echo = "pytest_echo.plugin"
5451

5552
[dependency-groups]
5653
dev = [
54+
"covdefaults>=2.3",
55+
"coverage>=7.6.1",
5756
"mypy>=1.14.1",
5857
"pdbpp>=0.10.3",
59-
"pre-commit-uv>=4.1.1",
58+
"pre-commit",
6059
"pytest>=8.3.4",
60+
"pytest-mock>=3.14",
6161
"ruff>=0.9.4",
6262
"tox>=4.24.1",
6363
]
@@ -105,11 +105,6 @@ lint.isort = { known-first-party = [ "pytest_echo" ], required-imports = [
105105
"from __future__ import annotations",
106106
] }
107107

108-
#[tool.codespell]
109-
#builtin = "clear,usage,en-GB_to_en-US"
110-
#write-changes = true
111-
#count = true
112-
113108
lint.preview = true
114109

115110
[tool.pyproject-fmt]
@@ -132,7 +127,7 @@ run.parallel = true
132127
run.plugins = [
133128
"covdefaults",
134129
]
135-
report.fail_under = 80
130+
report.fail_under = 90
136131
report.show_missing = true
137132
html.show_contexts = true
138133
html.skip_covered = false

tox.ini

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
requires =
33
tox>=4.2
4-
tox-uv>=1.11.3
4+
tox-uv>=1.20.2
55
env_list =
66
lint
77
3.13
@@ -18,8 +18,6 @@ skip_missing_interpreters = true
1818
description = run the tests with pytest
1919
package = wheel
2020
wheel_build_env = .pkg
21-
extras =
22-
testing
2321
pass_env =
2422
DIFF_AGAINST
2523
PYTEST_*
@@ -33,7 +31,7 @@ commands =
3331
coverage combine
3432
coverage report
3533
coverage html -d {envtmpdir}{/}htmlcov
36-
coverage html -d {toxinidir}{/}AAAAA
34+
dependency_groups = dev
3735

3836
[testenv:lint]
3937
description = run static analysis and style check using flake8
@@ -65,12 +63,3 @@ commands =
6563
uv build --sdist --wheel --out-dir {env_tmp_dir} .
6664
twine check {env_tmp_dir}{/}*
6765
check-wheel-contents --no-config {env_tmp_dir}
68-
69-
[testenv:dev]
70-
description = generate a DEV environment
71-
package = editable
72-
extras =
73-
testing
74-
commands =
75-
uv pip tree
76-
python -c 'import sys; print(sys.executable)'

0 commit comments

Comments
 (0)