Skip to content

Commit

Permalink
Pass color variables into tox runs
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 4, 2023
1 parent 4da64d2 commit c3e2d2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:

env:
FORCE_COLOR: "1" # Make tools pretty.
TOX_TESTENV_PASSENV: FORCE_COLOR
SETUPTOOLS_SCM_PRETEND_VERSION: "1.0" # avoid warnings about shallow checkout
PIP_DISABLE_PIP_VERSION_CHECK: 1
PIP_NO_PYTHON_VERSION_WARNING: 1
Expand Down
14 changes: 6 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ description = Run tests and do NOT measure coverage.
package = wheel
wheel_build_env = .pkg
extras = tests
pass_env =
FORCE_COLOR
NO_COLOR
commands =
pytest {posargs}
python -Im argon2 -n 1 -t 1 -m 8 -p 1
Expand Down Expand Up @@ -45,19 +48,14 @@ commands =
description = Run tests against bindings that use a system installation of Argon2.
set_env = ARGON2_CFFI_USE_SYSTEM=1
install_command = pip install {opts} --no-binary=argon2-cffi-bindings {packages}
commands =
pytest {posargs}
python -Im argon2 -n 1 -t 1 -m 8 -p 1


[testenv:py311-bindings-main]
description = Run tests against the current main branch of argon2-cffi-bindings
install_command = pip install {opts} --no-deps {packages}
extras =
commands =
pip install -I hypothesis pytest git+https://github.com/hynek/argon2-cffi-bindings
pytest {posargs}
python -Im argon2 -n 1 -t 1 -m 8 -p 1
deps =
install_command = pip install {opts} --no-deps {packages}
commands_pre = pip install -I hypothesis pytest git+https://github.com/hynek/argon2-cffi-bindings


[testenv:docs]
Expand Down

0 comments on commit c3e2d2b

Please sign in to comment.