Skip to content

Commit 8a53a37

Browse files
mpasternakpfouque
authored andcommitted
Enable CI on GitHub (#6)
* Enable GA builds * Disable Python 3.4 * Don't require ipdb on CI --------- Co-authored-by: Michał Pasternak <[email protected]>
1 parent 77a4d77 commit 8a53a37

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
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: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ envlist =
33
# py26-dj{16}
44
py27-dj{16,18,19,110,111}
55
# py33-dj{16,18}
6-
py{34,35,36}-dj{18,19,110,111}
6+
py{35,36}-dj{18,19,110,111}
77
py{36,37}-dj{20,21}
88
py{37,38}-dj{22,30,31,32}
99
py{38,310}-dj{40,41}
@@ -14,7 +14,7 @@ skipsdist = True
1414
deps =
1515
py26: ipython==2.1.0
1616
{py27,py32,py33}: ipython==5.4.1
17-
{py34,py35,py36}: ipython==6.1.0
17+
{py35,py36}: ipython==6.1.0
1818
{py37}: ipython==7.4.0
1919

2020
dj16: Django==1.6.11
@@ -85,3 +85,13 @@ commands = {posargs:python ./tests/manage.py test}
8585

8686
[flake8]
8787
max-line-length = 130
88+
89+
[gh-actions]
90+
python =
91+
2.7: py27
92+
3.5: py35
93+
3.6: py36
94+
3.7: py37
95+
3.8: py38
96+
3.9: py39
97+
3.10: py310

0 commit comments

Comments
 (0)