Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure tox-conda is installed #113

Merged
merged 3 commits into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
envs: |
- linux: mypy
- linux: py38-conda
toxdeps: tox-conda
- linux: py310
- linux: py311
- linux: py39
Expand Down
21 changes: 13 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 =
Expand Down