Add inital GitHub Actions

This commit is contained in:
Tobias Gruetzmacher 2021-04-30 21:47:21 +02:00
parent 987268dcf3
commit 2f1873d120
3 changed files with 41 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

27
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Tests (tox)
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@v2
- 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

View file

@ -1,6 +1,14 @@
[tox]
envlist = py36, py37, py38, py39, flake8
[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39, flak8
[testenv]
commands =
{envbindir}/py.test --tb=short \