@@ -15,48 +15,66 @@ jobs:
1515 runs-on : ubuntu-latest
1616 strategy :
1717 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" ]
1919
2020 steps :
2121 - uses : actions/checkout@v2
2222 with :
2323 fetch-depth : 9999
2424 - name : Set up Python ${{ matrix.python-version }}
25- uses : actions/setup-python@v1
25+ uses : actions/setup-python@v2
2626 with :
2727 python-version : ${{ matrix.python-version }}
2828 - name : Install dependencies and prepare tests
2929 run : |
3030 set -x
31- python -m pip install --upgrade pip
31+ python -m pip install --upgrade pip setuptools wheel
3232 python --version; git --version
3333 git submodule update --init --recursive
3434 git fetch --tags
35-
35+
36+ pip install -r requirements.txt
3637 pip install -r test-requirements.txt
3738 TRAVIS=yes ./init-tests-after-clone.sh
38-
39+
3940 git config --global user.email "travis@ci.com"
4041 git config --global user.name "Travis Runner"
4142 # If we rewrite the user's config by accident, we will mess it up
4243 # and cause subsequent tests to fail
4344 cat test/fixtures/.gitconfig >> ~/.gitconfig
45+
4446 - name : Lint with flake8
45-
4647 run : |
4748 set -x
4849 pip install flake8
4950 # 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+
5253 - name : Check types with mypy
5354 run : |
5455 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
5766
5867 - name : Documentation
5968 run : |
6069 set -x
6170 pip install -r doc/requirements.txt
6271 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