Skip to content

Commit 41f1deb

Browse files
authored
parallel twisted tests and newer mypy (#1197)
* parallel twisted tests and newer mypy * update mypy env
1 parent 240ae6f commit 41f1deb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
# Meta
4747
- {VERSION: "3.9", TOXENV: "check-manifest"}
4848
- {VERSION: "3.9", TOXENV: "flake8"}
49-
- {VERSION: "3.6", TOXENV: "py36-mypy", OS: "ubuntu-20.04"}
49+
- {VERSION: "3.11", TOXENV: "py311-mypy"}
5050
- {VERSION: "3.9", TOXENV: "docs"}
5151
name: "${{ matrix.PYTHON.TOXENV }}${{ matrix.PYTHON.OS && format(' on {0}', matrix.PYTHON.OS) || '' }}"
5252
steps:

tox.ini

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{py,py3,36,37,38,39,310,311}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,py36-mypy,docs,coverage-report
2+
envlist = py{py,py3,36,37,38,39,310,311}{,-cryptographyMain,-cryptographyMinimum}{,-useWheel}{,-randomorder},py37-twistedTrunk,check-manifest,flake8,py311-mypy,docs,coverage-report
33

44
[testenv]
55
allowlist_externals =
@@ -39,7 +39,7 @@ setenv =
3939
commands =
4040
python -c "import OpenSSL.SSL; print(OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION))"
4141
python -c "import cryptography; print(cryptography.__version__)"
42-
python -m twisted.trial --reporter=text twisted
42+
python -m twisted.trial -j4 --reporter=text twisted
4343

4444
[testenv:flake8]
4545
basepython = python3
@@ -52,9 +52,9 @@ commands =
5252
black --check .
5353
flake8 .
5454

55-
[testenv:py36-mypy]
55+
[testenv:py311-mypy]
5656
deps =
57-
mypy==0.950
57+
mypy==1.1.1
5858
skip_install = true
5959
commands =
6060
mypy src

0 commit comments

Comments
 (0)