test(ci): Add GitHub Actions workflow

This commit is contained in:
2020-01-11 23:45:45 +00:00
parent e016a7b20c
commit f664ef53a8

25
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
---
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install docker
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with molecule
run: |
molecule test --all