diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 68ee6d0..6b50820 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -27,6 +27,7 @@ jobs: envs: | - linux: mypy - linux: py38-conda + toxdeps: tox-conda - linux: py310 - linux: py311 - linux: py39 diff --git a/tox.ini b/tox.ini index f1b6ea5..aa4de4b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,17 +1,18 @@ [tox] envlist = - py{37,38,39,310}{,-conda} + py{37,38,39,310,311}{,-conda} codestyle build_docs isolated_build = True [testenv] setenv = + PYTEST_COMMAND = pytest -vvv -s -raR --pyargs parfive --cov-report=xml --cov=parfive --cov-config={toxinidir}/setup.cfg {toxinidir}/docs {posargs} extras = ftp tests commands = - pytest -vvv -s -raR --pyargs parfive --cov-report=xml --cov=parfive --cov-config={toxinidir}/setup.cfg {toxinidir}/docs {posargs} + {env: PYTEST_COMMAND} [testenv:build_docs] changedir = docs @@ -44,18 +45,22 @@ commands = mypy -p parfive # This env requires tox-conda. -[testenv:conda] +[testenv:py{38,39,310,311}-conda] extras = deps = conda_deps = - aioftp + # core deps + tqdm aiohttp - pytest-asyncio - pytest-cov + # ftp + aioftp + # tests + pytest pytest-localserver + pytest-asyncio pytest-socket - pytest-sugar - tqdm + pytest-cov + aiofiles conda_channels = conda-forge install_command = pip install --no-deps {opts} {packages} commands =