Adds GitHub Actions to run Tox. #164

This commit is contained in:
Corey Oordt 2021-12-04 09:10:26 -06:00
parent 277b49134e
commit 3854609626
3 changed files with 33 additions and 13 deletions

24
.github/workflows/run-tests.yaml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Run Tox tests
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9, 3.10 ]
steps:
- uses: actions/checkout@v1
- 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: Test with tox
run: tox

View file

@ -1,12 +0,0 @@
sudo: false
dist: xenial
language: python
python:
- "3.6"
install: pip install tox-travis
script: tox

10
tox.ini
View file

@ -2,9 +2,17 @@
envlist =
begin
py36-lint
py36-django{111,2,21,22,3,31}
py{36,37,38,39,10}-django{111,2,21,22,3,31}
coverage-report
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
deps=
django2: Django>=2.0,<2.1