Skip to content

Commit

Permalink
ci: Improve tox configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
EltonChou committed Sep 11, 2024
1 parent 619c5a9 commit 4da8f7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ testpaths = ["test"]

[tool.coverage.run]
omit = ["*/site-packages/*", "*/tests/*", "*/test/*"]
parallel = true

[tool.coverage.report]
show_missing = true
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ envlist = clean, py{38, 39, 310, 311, 312}, lint, type, cov-report

[testenv]
description = run tests
allowlist_externals = poetry
deps =
pytest >= 7
coverage >= 6.4
-r requirements-test.txt
commands =
poetry install --only main
coverage run -m pytest

[testenv:lint]
Expand All @@ -25,16 +22,19 @@ commands =

[testenv:type]
description = run type checks
skip_install = true
deps =
mypy > 0.971
commands =
mypy

[testenv:cov-report]
depends = py{38, 39, 310, 311, 312}
description = report coverage
deps = coverage[toml]
skip_install = true
deps = coverage[toml]
commands =
coverage combine
coverage report
coverage html

Expand Down

0 comments on commit 4da8f7a

Please sign in to comment.