File tree 4 files changed +33
-6
lines changed
4 files changed +33
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ test :
7
+
8
+ name : Test on Python ${{ matrix.py_version }}
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ py_version : [2.7, 3.5, 3.6, 3.7]
13
+
14
+ steps :
15
+ - uses : actions/checkout@v1
16
+ - name : Set up Python ${{ matrix.py_version }}
17
+ uses : actions/setup-python@v1
18
+ with :
19
+ python-version : ${{ matrix.py_version }}
20
+ - name : Install mock for Python 2.7
21
+ run : pip install mock
22
+ - name : Run tests
23
+ run : python setup.py test
Original file line number Diff line number Diff line change 2
2
pydiscourse
3
3
===========
4
4
5
- .. image :: https://secure.travis-ci.org /bennylope/pydiscourse.svg?branch=master
5
+ .. image :: https://github.com /bennylope/pydiscourse/workflows/Tests/badge .svg
6
6
:alt: Build Status
7
- :target: http ://travis-ci.org /bennylope/pydiscourse
7
+ :target: https ://github.com /bennylope/pydiscourse/actions
8
8
9
9
.. image :: https://img.shields.io/badge/Check%20out%20the-Docs-blue.svg
10
10
:alt: Check out the Docs
Original file line number Diff line number Diff line change 34
34
]
35
35
},
36
36
classifiers = [
37
- "Development Status :: 3 - Alpha" ,
37
+ "Development Status :: 5 - Production/Stable"
38
38
"Environment :: Web Environment" ,
39
39
"Intended Audience :: Developers" ,
40
40
"License :: OSI Approved :: MIT License" ,
41
41
"Operating System :: OS Independent" ,
42
42
"Programming Language :: Python" ,
43
43
"Programming Language :: Python :: 2.7" ,
44
- "Programming Language :: Python :: 3.4" ,
45
44
"Programming Language :: Python :: 3.5" ,
45
+ "Programming Language :: Python :: 3.6" ,
46
+ "Programming Language :: Python :: 3.7" ,
46
47
'Programming Language :: Python :: Implementation :: PyPy' ,
47
48
],
48
49
zip_safe = False ,
Original file line number Diff line number Diff line change 1
1
import sys
2
2
import unittest
3
- import mock
3
+
4
+ try :
5
+ from unittest import mock
6
+ except ImportError :
7
+ import mock
4
8
5
9
from pydiscourse import client
6
10
7
- import sys
8
11
9
12
if sys .version_info < (3 ,):
10
13
You can’t perform that action at this time.
0 commit comments