@@ -28,37 +28,50 @@ jobs:
28
28
- name : Install dependencies and prepare tests
29
29
run : |
30
30
set -x
31
- python -m pip install --upgrade pip
31
+ python -m pip install --upgrade pip setuptools wheel
32
32
python --version; git --version
33
33
git submodule update --init --recursive
34
34
git fetch --tags
35
-
35
+
36
+ pip install -r requirements.txt
36
37
pip install -r test-requirements.txt
37
38
TRAVIS=yes ./init-tests-after-clone.sh
38
-
39
+
39
40
git config --global user.email "[email protected] "
40
41
git config --global user.name "Travis Runner"
41
42
# If we rewrite the user's config by accident, we will mess it up
42
43
# and cause subsequent tests to fail
43
44
cat test/fixtures/.gitconfig >> ~/.gitconfig
45
+
44
46
- name : Lint with flake8
45
47
run : |
46
48
set -x
47
49
pip install flake8
48
50
# stop the build if there are Python syntax errors or undefined names
49
- flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics
51
+ flake8 --ignore=W293,E265,E266,W503,W504,E704,E731 --count --show-source --statistics
52
+
50
53
- name : Check types with mypy
51
54
run : |
52
55
set -x
53
- pip install tox
54
- tox -e type
56
+ pip install mypy
57
+ mypy -p git
58
+
55
59
- name : Test with nose
56
60
run : |
57
61
set -x
58
62
pip install nose
59
63
nosetests -v --with-coverage
64
+
60
65
- name : Documentation
61
66
run : |
62
67
set -x
63
68
pip install -r doc/requirements.txt
64
69
make -C doc html
70
+
71
+ - name : Test with pytest
72
+ run : |
73
+ set -x
74
+ pip install -r requirements-dev.txt
75
+ pytest
76
+ # pytest settings in tox.ini[pytest]
77
+ continue-on-error : true
0 commit comments