From 41f1deb6d689d41b300245dd4d8b2df19b0af9bf Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 24 Mar 2023 20:33:20 +0800 Subject: [PATCH] parallel twisted tests and newer mypy (#1197) * parallel twisted tests and newer mypy * update mypy env --- .github/workflows/ci.yml | 2 +- tox.ini | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e00ef74bb..1fa11af0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: # Meta - {VERSION: "3.9", TOXENV: "check-manifest"} - {VERSION: "3.9", TOXENV: "flake8"} - - {VERSION: "3.6", TOXENV: "py36-mypy", OS: "ubuntu-20.04"} + - {VERSION: "3.11", TOXENV: "py311-mypy"} - {VERSION: "3.9", TOXENV: "docs"} name: "${{ matrix.PYTHON.TOXENV }}${{ matrix.PYTHON.OS && format(' on {0}', matrix.PYTHON.OS) || '' }}" steps: diff --git a/tox.ini b/tox.ini index 5e00317e2..148d6bc7c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{py,py3,36,37,38,39,310,311}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,py36-mypy,docs,coverage-report +envlist = py{py,py3,36,37,38,39,310,311}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,py311-mypy,docs,coverage-report [testenv] allowlist_externals = @@ -39,7 +39,7 @@ setenv = commands = python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))" python -c "import cryptography; print(cryptography.__version__)" - python -m twisted.trial --reporter=text twisted + python -m twisted.trial -j4 --reporter=text twisted [testenv:flake8] basepython = python3 @@ -52,9 +52,9 @@ commands = black --check . flake8 . -[testenv:py36-mypy] +[testenv:py311-mypy] deps = - mypy==0.950 + mypy==1.1.1 skip_install = true commands = mypy src