mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
This runs mypy both with Python 3.7 and 3.8. In Python 3.8, mypy switched from using typed-ast to using Python's built-in ast. This patch ensures that both are tested.
36 lines
908 B
YAML
36 lines
908 B
YAML
dist: bionic
|
|
language: python
|
|
python: 3.7
|
|
|
|
matrix:
|
|
include:
|
|
- name: "pytype"
|
|
python: 3.6
|
|
env:
|
|
- TEST_CMD="./tests/pytype_test.py"
|
|
- INSTALL="test"
|
|
- name: "mypy (typed-ast)"
|
|
env:
|
|
- TEST_CMD="./tests/mypy_test.py"
|
|
- INSTALL="mypy"
|
|
- name: "mypy (ast)"
|
|
python: 3.8-dev
|
|
env:
|
|
- TEST_CMD="./tests/mypy_test.py"
|
|
- INSTALL="mypy"
|
|
- name: "mypy self test"
|
|
env: TEST_CMD="./tests/mypy_selftest.py"
|
|
- name: "check file consistency"
|
|
env: TEST_CMD="./tests/check_consistent.py"
|
|
- name: "flake8"
|
|
env:
|
|
- TEST_CMD="flake8"
|
|
- INSTALL="test"
|
|
|
|
install:
|
|
- if [[ $INSTALL == 'test' ]]; then pip install -r requirements-tests-py3.txt; fi
|
|
- if [[ $INSTALL == 'mypy' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast; fi
|
|
|
|
script:
|
|
- $TEST_CMD
|