Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Fix #285, enable CI on GitHub #286

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: django-fsm testing

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['2.7', '3.5', '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
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
15 changes: 12 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ envlist =
# py26-dj{16}
py27-dj{16,18,19,110,111}
# py33-dj{16,18}
py{34,35,36}-dj{18,19,110,111}
py{35,36}-dj{18,19,110,111}
py{36,37}-dj{20,21}
py{37,38,39}-dj{22,30,31,32}
py{38,39,310}-dj{40}
Expand All @@ -13,7 +13,7 @@ skipsdist = True
deps =
py26: ipython==2.1.0
{py27,py32,py33}: ipython==5.4.1
{py34,py35,py36}: ipython==6.1.0
{py35,py36}: ipython==6.1.0
{py37}: ipython==7.4.0

dj16: Django==1.6.11
Expand Down Expand Up @@ -67,9 +67,18 @@ deps =
graphviz==0.7.1
pep8==1.7.1
pyflakes==1.6.0
ipdb==0.10.3
commands = {posargs:python ./tests/manage.py test}


[flake8]
max-line-length = 130

[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310