Add github workflow

This commit is contained in:
Swen Kooij
2020-02-29 15:26:51 +02:00
parent 737af371b2
commit 76db75b607
+38
View File
@@ -0,0 +1,38 @@
name: test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test] .[analysis]
- name: Lint
run: |
python setup.py lint
- name: Validate formatting
run: |
python setup.py format_verify
python setup.py format_docstrings_verify
python setup.py sort_imports_verify
- name: Run tests
run: |
python setup.py test