Skip to content

Commit

Permalink
Add tox testing
Browse files Browse the repository at this point in the history
Without this, github actions setup is annoying to deal with, tbh.
tox has always been an amazing runner, and it's available in the
distro. Let's just use it.
  • Loading branch information
evrardjp committed Nov 3, 2020
1 parent 6308f79 commit ec59248
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ rules:
type: unix
trailing-spaces: disable
truthy: disable
ignore:
.tox/
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
lint: |
set -e
yamllint .
ansible-lint
ansible-lint -vv --exclude=.tox
dependency:
name: galaxy
driver:
Expand Down
4 changes: 4 additions & 0 deletions tox-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
molecule-docker
molecule
ansible-lint
yamllint
13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox]
minversion = 1.8
envlist = ansible-{2.9,latest}
skipsdist = true

[testenv]
passenv = *
deps =
-r tox-requirements.txt
ansible-2.9: ansible<=2.10.0
ansible-latest: ansible
commands =
molecule test

0 comments on commit ec59248

Please sign in to comment.