mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Run pytype and mypy self test using GitHub Actions (#4565)
This commit is contained in:
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@@ -51,6 +51,27 @@ jobs:
|
||||
pip install $(grep isort requirements-tests-py3.txt)
|
||||
isort --check-only --diff stdlib third_party
|
||||
|
||||
pytype:
|
||||
name: Run pytype against the stubs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.6
|
||||
- run: pip install -r requirements-tests-py3.txt
|
||||
- run: ./tests/pytype_test.py
|
||||
|
||||
mypy-self-test:
|
||||
name: Test mypy source with itself
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
- run: ./tests/mypy_selftest.py
|
||||
|
||||
stubtest:
|
||||
name: Check stubs with stubtest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -4,10 +4,6 @@ python: 3.8
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- name: "pytype"
|
||||
python: 3.6
|
||||
install: pip install -r requirements-tests-py3.txt
|
||||
script: ./tests/pytype_test.py
|
||||
- name: "mypy (typed-ast)"
|
||||
python: 3.7
|
||||
install: pip install -U git+git://github.com/python/mypy git+git://github.com/python/typed_ast
|
||||
@@ -22,5 +18,3 @@ jobs:
|
||||
- name: "mypy (Darwin)"
|
||||
install: pip install -U git+git://github.com/python/mypy
|
||||
script: ./tests/mypy_test.py --platform=darwin
|
||||
- name: "mypy self test"
|
||||
script: ./tests/mypy_selftest.py
|
||||
|
||||
Reference in New Issue
Block a user