Skip to content

Commit

Permalink
chore: test tox-uv
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug committed Apr 1, 2024
1 parent 163e83c commit 5eb4e22
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ cython_debug/
junit
.pdm-build
src/sync_pre_commit_lock/_version.py
requirements-tox.txt
42 changes: 41 additions & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ testtox = [
"pytest-cov>=5.0.0",
"pytest-mock>=3.14.0",
"PyYAML>=6.0.1",
"tox-uv>=1.7.0",
]

[tool.ruff]
Expand Down
12 changes: 8 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ set_env =
py{39,310,311,312}-poetry{16, 17}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov --cov-append --cov-report=term-missing {posargs:-vv} --cov-config=pyproject.toml
allowlist_externals =
coverage
pdm
pytest
depends =
report: py{312, 311, 310, 39}-pdm{213, 212, 211, 210, 29, 28, 27}
report: py{312, 311, 310, 39}-poetry{17, 16}
Expand All @@ -21,33 +25,33 @@ depends =

[testenv:report]
skip_install = true
deps =
-r requirements-tox.txt
commands =
coverage combine
coverage report
coverage html
coverage xml
groups =
testtox

[testenv:clean]
skip_install = true
commands =
coverage erase
pdm export --dev --group testtox -o requirements-tox.txt
groups =
testtox

[testenv:py{39,310,311,312}-pdm{27,28,29,210,211,212,213}]
package = editable
deps =
-r requirements-tox.txt
pdm210: pdm<2.11,>=2.10
pdm211: pdm<2.12,>=2.11
pdm212: pdm<2.13,>=2.12
pdm213: pdm<2.14,>=2.13.2
pdm27: pdm<2.8,>=2.7
pdm28: pdm<2.9,>=2.8
pdm29: pdm<2.10,>=2.9
groups =
testtox

[testenv:py{312, 311, 310, 39}-poetry{16, 17, 18}]
package = editable
Expand Down

0 comments on commit 5eb4e22

Please sign in to comment.