blob: 0091119f15efe3aa63dc9bc53c982c0fae6f28fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
os: linux
dist: focal
cache: pip
language: python
jobs:
include:
- python: 3.8
- python: 3.7
- python: 3.6
install:
- pip install . black coverage codecov flake8 isort mypy pytest readme_renderer
- pip list
script:
- echo "$TRAVIS_PYTHON_VERSION"
- flake8 prompt_toolkit
- coverage run -m pytest
# Run type checker.
- mypy prompt_toolkit
# Check wheather the imports were sorted correctly.
# When this fails, please run ./tools/sort-imports.sh
- isort -c -rc --profile black prompt_toolkit examples tests setup.py
- black --check prompt_toolkit examples tests setup.py
# Ensure that the README renders correctly (required for uploading to PyPI).
- python -m readme_renderer README.rst > /dev/null
after_success:
- codecov
|