diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b2d21a4..beadbee 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -8,12 +8,33 @@ on: - pull_request jobs: - build: + mypy: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - '3.5' + - '3.6' + - '3.7' + - '3.8' + - '3.9' + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: python -m pip install mypy + - name: Check types with mypy + run: mypy --strict idna + + build: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', 'pypy3'] steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4666146..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: python -arch: - - amd64 - - ppc64le -python: - - "3.5" - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "pypy3" -# Disable unsupported version pypy for ppc64le -jobs: - exclude: - - arch: ppc64le - python: pypy3 - -matrix: - include: - - python: 3.9 - install: - - pip install mypy - script: - - mypy --strict idna/ - -install: - - pip install . -script: - - python -m unittest discover