Re-enable mypy test suite (#5526)

Fixes #5505, in combination with https://github.com/python/mypy/pull/10527

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-05-25 01:42:18 -07:00
committed by GitHub
parent 781b76769e
commit 05f91f73b3
2 changed files with 11 additions and 8 deletions

View File

@@ -72,14 +72,14 @@ jobs:
- run: pip install -U git+git://github.com/python/mypy
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }}
# mypy-test-suite:
# name: Run the mypy test suite
# # Ubuntu 20.04 doesn't have the Python 2 venv module.
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# - run: ./tests/mypy_test_suite.py
mypy-test-suite:
name: Run the mypy test suite
# Ubuntu 20.04 doesn't have the Python 2 venv module.
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: ./tests/mypy_test_suite.py
pyright:
name: Run pyright against the stubs

View File

@@ -18,6 +18,9 @@ if __name__ == "__main__":
)
shutil.rmtree(dirpath / "mypy/mypy/typeshed/stdlib")
shutil.copytree("stdlib", dirpath / "mypy/mypy/typeshed/stdlib")
shutil.rmtree(dirpath / "mypy/mypy/typeshed/stubs/mypy-extensions")
shutil.copytree(Path("stubs/mypy-extensions"), dirpath / "mypy/mypy/typeshed/stubs/mypy-extensions")
try:
subprocess.run([sys.executable, "runtests.py", "typeshed-ci"], cwd=dirpath / "mypy", check=True)
except subprocess.CalledProcessError as e: