Commit 69c61841 authored by Florian Haas's avatar Florian Haas
Browse files

Add GitHub Actions workflow with tox-gh-actions

parent 567f5cdc
name: Test roles and playbooks
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox tox-gh-actions
- name: Test with tox
run: tox
......@@ -2,6 +2,14 @@
skipsdist = true
envlist = ansible-{25,26,27,28,29,latest}
[gh-actions]
python =
3.5: ansible-{25,26,27,28,29,latest}
3.6: ansible-{25,26,27,28,29,latest}
3.7: ansible-{25,26,27,28,29,latest}
3.8: ansible-{25,26,27,28,29,latest}
3.9: ansible-{25,26,27,28,29,latest}
[testenv]
deps =
ansible-25: ansible>=2.5,<2.6
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment