Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Consolidate devel testing #74

Merged
merged 1 commit into from Oct 28, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/tox.yml
Expand Up @@ -25,8 +25,12 @@ jobs:
- tox_env: lint
- tox_env: py36
PREFIX: PYTEST_REQPASS=5
- tox_env: py36-devel
PREFIX: PYTEST_REQPASS=5
- tox_env: py39
PREFIX: PYTEST_REQPASS=5
- tox_env: py39-devel
PREFIX: PYTEST_REQPASS=5
- tox_env: packaging

steps:
Expand Down
14 changes: 1 addition & 13 deletions setup.cfg
Expand Up @@ -70,19 +70,7 @@ install_requires =

[options.extras_require]
test =
ansi2html # soft-dependency of pytest-html
coverage>=4.4, < 5 # drop '<5' when we drop py27 as we cannot mix them
flake8>=3.6.0, < 4

mock>=3.0.5, < 4
pytest>=4.6.3, < 5
pytest-cov>=2.7.1, < 3
pytest-helpers-namespace>=2019.1.8, < 2020
pytest-html
pytest-mock>=1.10.4, < 2
pytest-verbose-parametrize>=1.7.0, < 2
pytest-xdist>=1.29.0, < 2
pytest-dependency
molecule[test]

[options.entry_points]
molecule.driver =
Expand Down
28 changes: 8 additions & 20 deletions tox.ini
@@ -1,8 +1,11 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
minversion = 3.9.0
envlist = lint,packaging,py{36,37,38,39},devel,distros
skipsdist = True
envlist =
lint
packaging
py{36,37,38,39}
py{36,37,38,39}-{devel}
apatard marked this conversation as resolved.
Show resolved Hide resolved
skip_missing_interpreters = True
isolated_build = True

Expand All @@ -11,6 +14,9 @@ description =
Unit testing
usedevelop = True
extras = test
deps =
py{36,37,38,39}: molecule[test]
py{36,37,38,39}-{devel}: git+https://github.com/ansible-community/molecule.git@master#egg=molecule[test]
commands =
pytest --collect-only
# -s is added in order to allow live output on long running functional tests
Expand Down Expand Up @@ -74,28 +80,10 @@ commands =
{toxinidir}
twine check dist/*

[testenv:devel]
description= Unit testing using master branches of molecule and ansible
extras = test
commands =
{[testenv]commands}
deps =
ansible>=2.10.0a2,<2.11
git+https://github.com/ansible-community/molecule#egg=molecule

[testenv:lint]
description = Performs linting, style checks
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a

[testenv:upload]
description = Builds the packages and uploads them to https://pypi.org
envdir={toxworkdir}/dist
deps=
{[testenv:packaging]deps}
commands =
{[testenv:packaging]commands}
twine upload --verbose dist/*