Skip to content

Commit

Permalink
Fix CI issue due to skipping missing interpreters (#13168)
Browse files Browse the repository at this point in the history
Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com>
  • Loading branch information
KotlinIsland and KotlinIsland authored Jul 18, 2022
1 parent ed5a2a0 commit 1de7dca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
env:
TOXENV: docs
TOX_SKIP_MISSING_INTERPRETERS: False
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
toxenv: lint

name: ${{ matrix.name }}
env:
TOX_SKIP_MISSING_INTERPRETERS: False
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
2 changes: 1 addition & 1 deletion mypyc/codegen/emitclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def emit_line() -> None:
if not fields.get('tp_vectorcall'):
# This is just a placeholder to please CPython. It will be
# overriden during setup.
fields['tp_call'] = 'PyVectorcall_Call'
fields['tp_call'] = 'PyVectorcall_Call'
fields['tp_flags'] = ' | '.join(flags)

emitter.emit_line(f"static PyTypeObject {emitter.type_struct_name(cl)}_template_ = {{")
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.8.0
skip_missing_interpreters = true
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
envlist =
py36,
py37,
Expand Down Expand Up @@ -47,19 +47,16 @@ parallel_show_output = True

[testenv:lint]
description = check the code style
basepython = python3.10
commands = flake8 {posargs}

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

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

0 comments on commit 1de7dca

Please sign in to comment.