diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a4eae1f --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 \ No newline at end of file diff --git a/tox.ini b/tox.ini index 80b9576..77975ed 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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 @@ -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 \ No newline at end of file