add gitlab actions config

This commit is contained in:
NotAFile
2019-12-08 00:29:55 +01:00
parent 30fdf17902
commit 8b535473ce
2 changed files with 32 additions and 2 deletions

28
.github/workflows/python.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Python Library
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.5", "3.6", "3.7", "3.8"]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Set up env
run: |
python -m pip install --upgrade pip
pip install tox
- name: Lint with flake8
run: |
tox -e flake
- name: Test with pytest
run: |
# use "py", which is the default python version
tox -e py