Skip to content

Commit 554ce96

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 7df0e6c commit 554ce96

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
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: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ skipsdist = True
1717
deps =
1818
py26: ipython==2.1.0
1919
{py27,py32,py33}: ipython==5.4.1
20-
{py34,py35,py36}: ipython==6.1.0
20+
{py35,py36}: ipython==6.1.0
2121
{py37}: ipython==7.4.0
2222

2323
dj16: Django==1.6.11
@@ -84,3 +84,13 @@ commands = {posargs:python ./tests/manage.py test}
8484

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

0 commit comments

Comments
 (0)