Skip to content

Commit 62cf675

Browse files
committed
Maybe fix tests?
1 parent 987f07f commit 62cf675

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ lint: ## check style with ruff and black
5454
test: ## run tests quickly with the default Python
5555
pdm run pytest -x --ff -n auto tests
5656

57-
5857
test-all: ## run tests on every Python version with tox
5958
tox
6059

@@ -78,7 +77,7 @@ servedocs: docs ## compile the docs watching for changes
7877
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
7978

8079
bench-cmp:
81-
pytest bench --benchmark-compare
80+
pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-compare
8281

8382
bench:
84-
pytest bench --benchmark-save base
83+
pytest --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname bench --benchmark-save base

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ msgspec = [
103103
]
104104

105105
[tool.pytest.ini_options]
106-
addopts = "-l --mypy-only-local-stub --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname"
106+
addopts = "-l"
107107

108108
[tool.coverage.run]
109109
parallel = true

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ package = wheel
3737
wheel_build_env = .pkg
3838

3939
[testenv:py312]
40+
commands_pre =
41+
pdm sync -G :all,test,tests-mypy
42+
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
43+
commands =
44+
coverage run -m pytest tests {posargs:-n auto --mypy-only-local-stub}
45+
46+
[testenv:pypy3]
4047
setenv =
4148
PDM_IGNORE_SAVED_PYTHON="1"
4249
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml

0 commit comments

Comments
 (0)