github: Use a github action for testing

Introduce a github action that will run tox on a number of python
versions and host OSes for testing.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-01-23 07:25:42 -06:00 committed by Marti Bolivar
parent 54d04577a3
commit 4fcbf40a6e
1 changed files with 23 additions and 0 deletions

23
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Python Test
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install tox
run: pip3 install tox
- name: tox
run: tox