File tree Expand file tree Collapse file tree 5 files changed +54
-25
lines changed Expand file tree Collapse file tree 5 files changed +54
-25
lines changed Original file line number Diff line number Diff line change 1
- sudo : false
1
+ if : tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
2
+
2
3
language : python
3
4
# cache package wheels (1 cache per python version)
4
5
cache : pip
5
- python :
6
- - " 3.4"
6
+ # newer python versions are available only on xenial (while some older only on trusty) Ubuntu distribution
7
+ dist : xenial
8
+ sudo : required
9
+
10
+ env :
11
+ TOXENV=py
12
+ EXTRA_ARGS="-n 12"
13
+
14
+ jobs :
15
+ include :
16
+ - name : " run test suite with python 3.4"
17
+ python : 3.4
18
+ dist : trusty
7
19
# Specifically request 3.5.1 because we need to be compatible with that.
8
- - " 3.5.1"
9
- - " 3.6"
10
- - " 3.7-dev"
20
+ - name : " run test suite with python 3.5.1"
21
+ python : 3.5.1
22
+ dist : trusty
23
+ - name : " run test suite with python 3.6"
24
+ python : 3.6 # 3.6.3 pip 9.0.1
25
+ - name : " run test suite with python 3.7"
26
+ python : 3.7 # 3.7.0 pip 10.0.1
27
+ - name : " run test suite with python 3.8-dev"
28
+ python : 3.8-dev
29
+ - name : " type check our own code"
30
+ python : 3.7
31
+ env :
32
+ - TOXENV=type
33
+ - EXTRA_ARGS=
34
+ - name : " check code style with flake8"
35
+ python : 3.7
36
+ env :
37
+ - TOXENV=lint
38
+ - EXTRA_ARGS=
11
39
12
40
install :
13
- - pip install -U pip setuptools wheel
14
- - pip install -r test-requirements.txt
15
- - python2 -m pip install --user typing
16
- - pip install .
41
+ - pip install -U pip setuptools
42
+ - pip install -U tox
43
+ - tox --notest
17
44
18
45
script :
19
- - pytest -n12
20
- - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then flake8 -j12; fi
21
- - if [[ $TRAVIS_PYTHON_VERSION == '3.5.1' ]]; then python3 -m mypy --config-file mypy_self_check.ini -p mypy; fi
46
+ - tox -- $EXTRA_ARGS
Original file line number Diff line number Diff line change 4
4
environment :
5
5
matrix :
6
6
7
- - PYTHON : " C:\\ Python36 -x64"
8
- PYTHON_VERSION : " 3.6 .x"
7
+ - PYTHON : " C:\\ Python37 -x64"
8
+ PYTHON_VERSION : " 3.7 .x"
9
9
PYTHON_ARCH : " 64"
10
10
11
11
install :
12
12
- " git config core.symlinks true"
13
13
- " git reset --hard"
14
- - " %PYTHON%\\ python.exe -m pip install -r test-requirements.txt"
15
- - " C:\\ Python27\\ python.exe -m pip install typing"
16
14
- " git submodule update --init typeshed"
17
15
- " cd typeshed && git config core.symlinks true && git reset --hard && cd .."
18
- - " %PYTHON%\\ python.exe -m pip install ."
16
+ - " %PYTHON%\\ python.exe -m pip install -U setuptools tox"
17
+ - " %PYTHON%\\ python.exe -m tox -e py37 --notest"
19
18
20
19
build : off
21
20
22
21
test_script :
23
- # lint and mypy self check run in Travis
24
- - " %PYTHON%\\ python.exe -m pytest -k \" not (PythonEvaluationSuite and python2)\" "
22
+ - " %PYTHON%\\ python.exe -m tox -e py37"
25
23
26
24
skip_commits :
27
25
files :
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [
3
+ " setuptools >= 30.0.2" ,
4
+ " wheel >= 0.29.0"
5
+ ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ attrs>=18.0
2
2
flake8
3
3
flake8-bugbear; python_version >= '3.5'
4
4
flake8-pyi; python_version >= '3.6'
5
- lxml==4.2.3
5
+ lxml==4.2.4
6
6
psutil==5.4.0
7
7
pytest>=3.4
8
8
pytest-xdist>=1.22
Original file line number Diff line number Diff line change @@ -11,29 +11,30 @@ envlist = py34,
11
11
12
12
[testenv]
13
13
description = run the test driver with {basepython}
14
+ passenv = PYTEST_XDIST_WORKER_COUNT
14
15
deps = -rtest-requirements.txt
15
16
commands = pytest {posargs}
16
17
17
18
[testenv:lint]
18
19
description = check the code style
19
- basepython = python3.6
20
+ basepython = python3.7
20
21
commands = flake8 -j0 {posargs}
21
22
22
23
[testenv:type]
23
24
description = type check ourselves
24
- basepython = python3.6
25
+ basepython = python3.7
25
26
commands = python3 -m mypy --config-file mypy_self_check.ini -p mypy
26
27
27
28
[testenv:docs]
28
29
description = invoke sphinx-build to build the HTML docs
29
- basepython = python3.6
30
+ basepython = python3.7
30
31
deps = -rdocs/requirements-docs.txt
31
32
commands = sphinx-build -d " {toxworkdir}/docs_doctree" docs/source " {toxworkdir}/docs_out" --color -W -bhtml {posargs}
32
33
33
34
[testenv:dev]
34
35
description = generate a DEV environment, that has all project libraries
35
36
usedevelop = True
36
- basepython = python3.6
37
+ basepython = python3.7
37
38
deps = -rtest-requirements.txt
38
39
-rdocs/requirements-docs.txt
39
40
commands = python -m pip list --format =columns
You can’t perform that action at this time.
0 commit comments