Skip to content

Commit bc48d75

Browse files
authored
Update pythonpackage.yml
Add pytest step to workflow Add pip install setuptools and wheel Invoke mypy directly, no need for tox
1 parent 882f2a5 commit bc48d75

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,37 +28,50 @@ jobs:
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 "[email protected]"
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
4547
run: |
4648
set -x
4749
pip install flake8
4850
# 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+
5053
- name: Check types with mypy
5154
run: |
5255
set -x
53-
pip install tox
54-
tox -e type
56+
pip install mypy
57+
mypy -p git
58+
5559
- name: Test with nose
5660
run: |
5761
set -x
5862
pip install nose
5963
nosetests -v --with-coverage
64+
6065
- name: Documentation
6166
run: |
6267
set -x
6368
pip install -r doc/requirements.txt
6469
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

Comments
 (0)