Skip to content

Commit

Permalink
[CI] tox now uses optional deps pinned in pdm.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia committed Nov 11, 2023
1 parent 2ec9bf4 commit 5ea6abb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
8 changes: 4 additions & 4 deletions pdm.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ test = [
"pytest-mock~=3.10.0",
"pytest-cov<5,>=4.0",
"pytest-asyncio>=0.21.0",
"trove-classifiers==2023.8.7",
"trove-classifiers>=2023.11.9",
"trustme>=1.0.0",
]
doc = [
Expand Down
17 changes: 5 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ setenv =
PYTHONHASHSEED = 100
PYTHONUNBUFFERED = 1
PDM_IGNORE_SAVED_PYTHON = 1
all_extras =
cbor
msgpack
encryption
sniffio
allowlist_externals =
pdm

Expand Down Expand Up @@ -57,11 +52,6 @@ commands =

[testenv:py311-{unit,functional}-{__standard__,cbor,msgpack,encryption,sniffio}]
package = wheel
extras =
cbor: cbor
msgpack: msgpack
encryption: encryption
sniffio: sniffio
allowlist_externals =
{[base]allowlist_externals}
setenv =
Expand All @@ -74,6 +64,10 @@ setenv =
passenv =
PYTEST_MAX_WORKERS
commands_pre =
cbor: {[pdm]sync} --prod --group=cbor
msgpack: {[pdm]sync} --prod --group=msgpack
encryption: {[pdm]sync} --prod --group=encryption
sniffio: {[pdm]sync} --prod --group=sniffio
{[pdm]sync} --dev --group=test
commands =
__standard__: pytest -n "{env:PYTEST_MAX_WORKERS:auto}" --dist={[base-pytest]xdist_dist} -m "not feature" {env:TESTS_ROOTDIR}
Expand Down Expand Up @@ -142,15 +136,14 @@ commands =

[testenv:mypy-{full,test,docs}]
package = wheel
extras =
{[base]all_extras}
allowlist_externals =
{[base]allowlist_externals}
setenv =
{[base]setenv}
MYPY_CACHE_DIR = {envtmpdir}{/}.mypy_cache
MYPY_OPTS = --config-file {toxinidir}{/}pyproject.toml --new-type-inference
commands_pre =
{[pdm]sync} --prod --group=":all"
{[pdm]sync} --dev --group=mypy
test: {[pdm]sync} --dev --group=test
commands =
Expand Down

0 comments on commit 5ea6abb

Please sign in to comment.