mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use GitHub Actions to run mypy (#4594)
This commit is contained in:
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@@ -62,6 +62,21 @@ jobs:
|
||||
- run: pip install -r requirements-tests-py3.txt
|
||||
- run: ./tests/pytype_test.py
|
||||
|
||||
mypy:
|
||||
name: Run mypy against the stubs
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
platform: ["linux", "win32", "darwin"]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
- run: pip install -U git+git://github.com/python/mypy
|
||||
- run: ./tests/mypy_test.py --platform=${{ matrix.platform }}
|
||||
|
||||
mypy-self-test:
|
||||
name: Test mypy source with itself
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user