Skip to content

Commit 07c0141

Browse files
committed
Test on pypy3.8 in CI
1 parent b66d75f commit 07c0141

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/workflows/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- check-py37
2929
- check-pypy37
3030
- check-py38
31+
- check-pypy38
3132
- check-py39
3233
- check-py310
3334
- check-quality

hypothesis-python/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{36,py36,37,py37,38,39,310}-{brief,prettyquick,full,custom}
2+
envlist = py{36,py36,37,py37,38,py38,39,310}-{brief,prettyquick,full,custom}
33
toxworkdir={env:TOX_WORK_DIR:.tox}
44

55
[testenv]

tooling/src/hypothesistooling/__main__.py

+16-6
Original file line numberDiff line numberDiff line change
@@ -360,21 +360,26 @@ def run_tox(task, version):
360360

361361

362362
# See update_python_versions() above
363+
# When adding or removing a version, also update the env lists in tox.ini and
364+
# workflows/main.yml, and the corresponding @python_tests function below.
363365
PY36 = "3.6.15"
364366
PY37 = "3.7.12"
365367
PY38 = PYMAIN = "3.8.12" # Sync PYMAIN minor version with GH Actions main.yml
366368
PY39 = "3.9.7"
367369
PY310 = "3.10.0"
368370
PYPY36 = "pypy3.6-7.3.3"
369-
PYPY37 = "pypy3.7-7.3.5"
371+
PYPY37 = "pypy3.7-7.3.6"
372+
PYPY38 = "pypy3.8-7.3.6"
370373

371374

372375
# ALIASES are the executable names for each Python version
373-
ALIASES = {PYPY36: "pypy3", PYPY37: "pypy3"}
374-
375-
for n in [PY36, PY37, PY38, PY39, PY310]:
376-
major, minor, patch = n.replace("-dev", ".").split(".")
377-
ALIASES[n] = f"python{major}.{minor}"
376+
ALIASES = {}
377+
for name, value in list(globals().items()):
378+
if name.startswith("PYPY"):
379+
ALIASES[value] = "pypy3"
380+
elif name.startswith("PY"):
381+
major, minor, patch = value.replace("-dev", ".").split(".")
382+
ALIASES[value] = f"python{major}.{minor}"
378383

379384

380385
python_tests = task(
@@ -422,6 +427,11 @@ def check_pypy37():
422427
run_tox("pypy3-full", PYPY37)
423428

424429

430+
@python_tests
431+
def check_pypy38():
432+
run_tox("pypy3-full", PYPY38)
433+
434+
425435
def standard_tox_task(name):
426436
TASKS["check-" + name] = python_tests(lambda: run_tox(name, PYMAIN))
427437

0 commit comments

Comments
 (0)