Skip to content

Commit

Permalink
parallel twisted tests and newer mypy (#1197)
Browse files Browse the repository at this point in the history
* parallel twisted tests and newer mypy

* update mypy env
  • Loading branch information
reaperhulk committed Mar 24, 2023
1 parent 240ae6f commit 41f1deb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions 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 =
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 41f1deb

Please sign in to comment.