mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
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:
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user