Skip to content

Commit

Permalink
Backport #286
Browse files Browse the repository at this point in the history
  • Loading branch information
pfouque committed Oct 26, 2023
1 parent d9effde commit d603ef5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
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
24 changes: 15 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ 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,41}
py{38,39,310}-dj{40}
skipsdist = True

[testenv]
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 @@ -60,14 +60,10 @@ deps =
dj32: coverage==6.1.1
dj32: django-guardian==2.4.0

dj40: Django==4.0.7
dj40: coverage==6.4.2
dj40: Django==4.0b1
dj40: coverage==6.1.1
dj40: django-guardian==2.4.0

dj41: Django==4.1
dj41: coverage==6.4.3
dj41: django-guardian==2.4.0

graphviz==0.7.1
pep8==1.7.1
pyflakes==1.6.0
Expand All @@ -76,3 +72,13 @@ 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

0 comments on commit d603ef5

Please sign in to comment.