Skip to content

Commit a4b2636

Browse files
pfouquempasternak
andcommitted
Enable CI on GitHub (#6)
* Enable GA builds * Disable Python 3.4 * Don't require ipdb on CI --------- Co-authored-by: Michał Pasternak <michal.dtz@gmail.com>
1 parent 3dc622e commit a4b2636

File tree

2 files changed

+33
-20
lines changed

2 files changed

+33
-20
lines changed

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: django-fsm testing
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install tox tox-gh-actions
25+
- name: Test with tox
26+
run: tox

tox.ini

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,6 @@ skipsdist = True
77

88
[testenv]
99
deps =
10-
dj16: Django==1.6.11
11-
dj16: coverage<=3.999
12-
dj16: django-guardian==1.3.2
13-
14-
dj18: Django==1.8.19
15-
dj18: coverage==4.1
16-
dj18: django-guardian==1.4.4
17-
18-
dj19: Django==1.9.13
19-
dj19: coverage==4.1
20-
dj19: django-guardian==1.4.4
21-
22-
dj110: Django==1.10.8
23-
dj110: coverage==4.1
24-
dj110: django-guardian==1.4.4
25-
26-
dj111: Django==1.11.26
27-
dj111: coverage==4.5.4
28-
dj111: django-guardian==1.4.8
29-
3010
dj20: Django==2.0.13
3111
dj20: coverage==4.5.4
3212
dj20: django-guardian==1.5.0
@@ -65,3 +45,10 @@ commands = {posargs:python ./tests/manage.py test}
6545

6646
[flake8]
6747
max-line-length = 130
48+
49+
[gh-actions]
50+
python =
51+
3.7: py37
52+
3.8: py38
53+
3.9: py39
54+
3.10: py310

0 commit comments

Comments
 (0)