From fae202e2a9f5b1278c83a4c02dff79fbed2b9257 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Mon, 21 Sep 2020 16:07:08 +0200 Subject: [PATCH] Run pytype and mypy self test using GitHub Actions (#4565) --- .github/workflows/tests.yml | 21 +++++++++++++++++++++ .travis.yml | 6 ------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d52ff09f..66f9cf8ec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/.travis.yml b/.travis.yml index fae2e2d39..853b49c00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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