Skip to content

Commit

Permalink
Adds GitHub Actions to run Tox. #164
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 4, 2021
1 parent 277b491 commit 3854609
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3854609

Please sign in to comment.