File tree 8 files changed +26
-15
lines changed
8 files changed +26
-15
lines changed Original file line number Diff line number Diff line change 1
- dist : xenial
1
+ dist : bionic
2
2
language : python
3
3
4
4
python :
@@ -8,10 +8,10 @@ python:
8
8
cache : pip
9
9
10
10
install :
11
- - pip install tox tox-venv
11
+ - pip install tox
12
12
13
13
before_script :
14
- # Disable IPv6. Ref travis-ci/travis-ci#8361
14
+ # Enable IPv6. Ref travis-ci/travis-ci#8361
15
15
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
16
16
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
17
17
fi
Original file line number Diff line number Diff line change 18
18
- ' %LOCALAPPDATA%\pip\Cache'
19
19
20
20
test_script :
21
- - " python -m pip install -U tox tox-venv virtualenv"
21
+ - " python -m pip install -U tox virtualenv"
22
22
- " tox"
23
23
24
24
version : ' {build}'
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ trigger:
11
11
- ' *'
12
12
13
13
pool :
14
- vmimage : ' Ubuntu-18.04 '
14
+ vmImage : $(pool_vm_image)
15
15
16
16
variables :
17
17
- group : Azure secrets
18
+ - name : pool_vm_image
19
+ value : Ubuntu-18.04
18
20
19
21
stages :
20
22
- stage : Test
@@ -23,10 +25,17 @@ stages:
23
25
- job : ' Test'
24
26
strategy :
25
27
matrix :
26
- Python36 :
28
+ Bionic Python 3.6 :
27
29
python.version : ' 3.6'
28
- Python38 :
30
+ Bionic Python 3.8 :
29
31
python.version : ' 3.8'
32
+ Windows :
33
+ python.version : ' 3.8'
34
+ pool_vm_image : vs2017-win2016
35
+ MacOS :
36
+ python.version : ' 3.8'
37
+ pool_vm_image : macos-10.15
38
+
30
39
maxParallel : 4
31
40
32
41
steps :
Original file line number Diff line number Diff line change
1
+ [mypy]
2
+ ignore_missing_imports = True
Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
norecursedirs =dist build .tox .eggs
3
- addopts =--doctest-modules --flake8 --black --cov
3
+ addopts =--doctest-modules --flake8 --black --cov --mypy
4
4
doctest_optionflags =ALLOW_UNICODE ELLIPSIS
5
+ # workaround for warning pytest-dev/pytest#6178
6
+ junit_family =xunit2
5
7
filterwarnings =
8
+ # https://github.com/pytest-dev/pytest/issues/6928
9
+ ignore:direct construction of .*Item has been deprecated:DeprecationWarning
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ testing =
31
31
pytest >= 3.5, !=3.7.3
32
32
pytest-checkdocs >= 1.2.3
33
33
pytest-flake8
34
- pytest-black-multipy
34
+ pytest-black >= 0.3.7
35
35
pytest-cov
36
+ pytest-mypy
36
37
37
38
# local
38
39
appdirs
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ Features include:
120
120
121
121
Features include:
122
122
- test against Python 3
123
- - run on Ubuntu Xenial
123
+ - run on Ubuntu Bionic
124
124
- correct for broken IPv6
125
125
126
126
### AppVeyor
Original file line number Diff line number Diff line change @@ -3,15 +3,10 @@ envlist = python
3
3
minversion = 3.2
4
4
# https://github.com/jaraco/skeleton/issues/6
5
5
tox_pip_extensions_ext_venv_update = true
6
- # Ensure that a late version of pip is used even on tox-venv.
7
- requires =
8
- tox-pip-version>=0.0.6
9
- tox-venv
10
6
11
7
12
8
[testenv]
13
9
deps =
14
- pip_version = pip
15
10
commands =
16
11
pytest {posargs}
17
12
usedevelop = True
You can’t perform that action at this time.
0 commit comments