Skip to content

Commit

Permalink
Get latest updates for CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-hellings committed Mar 4, 2021
1 parent 2aa5ecf commit f956653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ jobs:
run: |
set -ex
python -m pip install --upgrade tox
- name: collect depenencies
- name: Run lint and collect scenarios
id: collection
run: |
set -ex
json="["
for x in $(tox -ql --ansible-driver docker --ansible-driver podman); do
json="${json}\"${x}\","
done
json="${json%,}]"
set -ex -o pipefail
tox -e lint_all
json=$(tox -ql --ansible-driver docker --ansible-driver podman | python -c 'import json; import sys; print(json.dumps(sys.stdin.read().strip().split("\n")))')
echo "::set-output name=scenarios::${json}"
build:
Expand Down
14 changes: 0 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,3 @@ passenv =
PS1
setenv =
ANSIBLE_COLLECTIONS_PATHS={toxinidir}/../../../

[testenv:lint]
usedevelop = false
skip_install = true
setenv =
ANSIBLE_COLLECTIONS_PATHS={toxinidir}/../../../
deps =
ansible-lint
flake8
ansible
allowlist_externals =
bash
commands =
bash -c "ansible-lint -R -r {toxinidir}/tests/ansible_lint_rules -c {toxinidir}/tests/ansible-lint roles/*"

0 comments on commit f956653

Please sign in to comment.