Skip to content

Commit 1de7dca

Browse files
authored
Fix CI issue due to skipping missing interpreters (#13168)
Co-authored-by: KotlinIsland <[email protected]>
1 parent ed5a2a0 commit 1de7dca

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
TOXENV: docs
21+
TOX_SKIP_MISSING_INTERPRETERS: False
2122
steps:
2223
- uses: actions/checkout@v2
2324
- uses: actions/setup-python@v2

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ jobs:
9393
toxenv: lint
9494

9595
name: ${{ matrix.name }}
96+
env:
97+
TOX_SKIP_MISSING_INTERPRETERS: False
9698
steps:
9799
- uses: actions/checkout@v2
98100
- uses: actions/setup-python@v2

mypyc/codegen/emitclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def emit_line() -> None:
325325
if not fields.get('tp_vectorcall'):
326326
# This is just a placeholder to please CPython. It will be
327327
# overriden during setup.
328-
fields['tp_call'] = 'PyVectorcall_Call'
328+
fields['tp_call'] = 'PyVectorcall_Call'
329329
fields['tp_flags'] = ' | '.join(flags)
330330

331331
emitter.emit_line(f"static PyTypeObject {emitter.type_struct_name(cl)}_template_ = {{")

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
minversion = 3.8.0
3-
skip_missing_interpreters = true
3+
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
44
envlist =
55
py36,
66
py37,
@@ -47,19 +47,16 @@ parallel_show_output = True
4747

4848
[testenv:lint]
4949
description = check the code style
50-
basepython = python3.10
5150
commands = flake8 {posargs}
5251

5352
[testenv:type]
5453
description = type check ourselves
55-
basepython = python3.10
5654
commands =
5755
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
5856
python -m mypy --config-file mypy_self_check.ini misc/proper_plugin.py
5957

6058
[testenv:docs]
6159
description = invoke sphinx-build to build the HTML docs
62-
basepython = python3.10
6360
deps = -rdocs/requirements-docs.txt
6461
commands =
6562
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}

0 commit comments

Comments
 (0)