Skip to content

Commit

Permalink
Enable CI on GitHub (#6)
Browse files Browse the repository at this point in the history
* Enable GA builds

* Disable Python 3.4

* Don't require ipdb on CI

---------

Co-authored-by: Michał Pasternak <[email protected]>
  • Loading branch information
pfouque and mpasternak authored Oct 28, 2023
1 parent d9effde commit 54baa07
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 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
14 changes: 12 additions & 2 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,41}
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 @@ -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

0 comments on commit 54baa07

Please sign in to comment.