Add GitHub Action for running tests.

This commit is contained in:
Emil Stenström 2021-01-17 23:25:56 +01:00
parent 8b3760458b
commit 0ecf1fc45b
2 changed files with 33 additions and 1 deletions

32
.github/workflows/index.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Build
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 2.7
- 3.4
- 3.5
- 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: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run tests
run: |
tox

View file

@ -10,7 +10,7 @@ envlist =
flake8 flake8
isort isort
[tox:travis] [gh-actions]
2.7 = py27-django111 2.7 = py27-django111
3.4 = py34-django{111,20} 3.4 = py34-django{111,20}
3.5 = py35-django{111,20,21,22} 3.5 = py35-django{111,20,21,22}