Skip to content

Commit

Permalink
tox
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Sep 16, 2024
1 parent 8fc61b1 commit fbbd554
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
- name: Install tox
run: python -Im pip install pytest
- name: Run tox on wheel
run: python -Im pytest
run: python -Im tox run --installpkg dist/*.whl
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,29 @@ quote-style = "single"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "Q"]
ignore = ["Q000", "Q003"]

[tool.tox]
legacy_tox_ini = """
[tox]
env_list =
py37
py38
py39
py310
py311
py312
py313
pypy3s
minversion = 4.15.0
[testenv]
description = Run the tests with pytest
package = wheel
wheel_build_env = .pkg
changedir = tests
deps =
pytest>=6
commands =
pytest {tty:--color=yes} --basetemp="{envtmpdir}" {posargs}
"""

0 comments on commit fbbd554

Please sign in to comment.