From 54baa07a7a02d169eb154ac4e9686538d3a9bf10 Mon Sep 17 00:00:00 2001 From: Pascal F Date: Sat, 28 Oct 2023 16:42:01 +0200 Subject: [PATCH] Enable CI on GitHub (#6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Enable GA builds * Disable Python 3.4 * Don't require ipdb on CI --------- Co-authored-by: MichaƂ Pasternak --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ tox.ini | 14 ++++++++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..71045b9 --- /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 diff --git a/tox.ini b/tox.ini index 80b9576..495a37e 100644 --- a/tox.ini +++ b/tox.ini @@ -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,41} @@ -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 @@ -76,3 +76,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