more mypy platforms in ci (#12299)

* more mypy platforms in ci

* check not checks

* oh yeah, activate...

* add 3.11

* adjust job names

* actually use the right python version for install

* adjust for 3.7 hinting support

* exclude macos 3.7 and macos arm 3.8

* back to 3.8 for now

* major_dot_minor

* oops

* move ignore comments for 3.7

* and more
This commit is contained in:
Kyle Altendorf
2023-04-27 09:51:18 -05:00
committed by GitHub
parent 4c7f7e7d23
commit 2ed75d47f3
10 changed files with 178 additions and 41 deletions
+4
View File
@@ -2,6 +2,7 @@ from __future__ import annotations
import asyncio
import cProfile
import sys
from contextlib import contextmanager
from dataclasses import dataclass
from subprocess import check_call
@@ -28,6 +29,9 @@ NUM_PEERS = 5
@contextmanager
def enable_profiler(profile: bool, name: str) -> Iterator[None]:
if sys.version_info < (3, 8):
raise Exception(f"Python 3.8 or higher required, running with: {sys.version}")
if not profile:
yield
return