@@ -15,48 +15,66 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
strategy :
17
17
matrix :
18
- python-version : [3.6, 3.7, 3.8, 3.9]
18
+ python-version : [3.6, 3.7, 3.8, 3.9, "3.10.0-beta.3" ]
19
19
20
20
steps :
21
21
- uses : actions/checkout@v2
22
22
with :
23
23
fetch-depth : 9999
24
24
- name : Set up Python ${{ matrix.python-version }}
25
- uses : actions/setup-python@v1
25
+ uses : actions/setup-python@v2
26
26
with :
27
27
python-version : ${{ matrix.python-version }}
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 "travis@ci.com"
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
-
46
47
run : |
47
48
set -x
48
49
pip install flake8
49
50
# stop the build if there are Python syntax errors or undefined names
50
- flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics
51
-
51
+ flake8 --ignore=W293,E265,E266,W503,W504,E704, E731 --count --show-source --statistics
52
+
52
53
- name : Check types with mypy
53
54
run : |
54
55
set -x
55
- pip install tox
56
- tox -e type
56
+ pip install mypy
57
+ mypy -p git
58
+
59
+ - name : Test with pytest
60
+ run : |
61
+ set -x
62
+ pip install -r requirements-dev.txt
63
+ pytest --cov --cov-report=term
64
+ # pytest settings in tox.ini[pytest]
65
+ continue-on-error : false
57
66
58
67
- name : Documentation
59
68
run : |
60
69
set -x
61
70
pip install -r doc/requirements.txt
62
71
make -C doc html
72
+
73
+ # - name: Test with nose
74
+ # run: |
75
+ # set -x
76
+ # pip install nose
77
+ # nosetests -v --with-coverage
78
+ # continue-on-error: false
79
+
80
+
0 commit comments