Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange results with pypy36 and pypy37 #58

Closed
brechtm opened this issue Jan 27, 2021 · 2 comments
Closed

Strange results with pypy36 and pypy37 #58

brechtm opened this issue Jan 27, 2021 · 2 comments
Labels
question Asks a question about tox-gh-actions

Comments

@brechtm
Copy link

brechtm commented Jan 27, 2021

I want to test my project against both PyPy 3.6 and 3.7. My tox-gh-actions is set up in my tox.ini like this:

[gh-actions]
python =
    3.6: py36
    3.7: py37
    3.8: py38
    3.9: py39
    3.10: py310
    pypy-3.6: pypy36
    pypy-3.7: pypy37

Here's a run of my GitHub Actions workflow: https://github.com/brechtm/rinohtype/actions/runs/515676468. For the pypy-3.6 unit tests jobs on Ubuntu and macOS, tox-gh-actions produces an empty envlist. The pypy-3.7 job works correctly (['pypy37'] envlist).

On Windows, the PyPy jobs actually run on CPython 3.9. But I think that's not an issue with tox-gh-actions since the Poetry venv is created using CPython 3.9 for some reason.

While the pypy36 and pypy37 envs aren't explicitly listed in the tox docs, they do seem to do the right thing when I run tox locally. I have verified this with PyPy 3.7 on macOS. I don't have PyPy 3.6 installed, but at least tox is attempting to run the correct interpreter:

$ tox -e pypy36
pypy36 create: /Users/brechtm/Documents/Code/rinohtype/.tox/pypy36
ERROR: InterpreterNotFound: pypy3.6
_____________________________________________ summary ______________________________________________
ERROR:  pypy36: InterpreterNotFound: pypy3.6
@brechtm
Copy link
Author

brechtm commented Jan 27, 2021

I may just have misunderstood how tox-gh-actions works. After discovering #44, I think I may need to include pypy36 in envlist? However, I would rather not, since I don't have pypy3.6 installed locally...

@ymyzk ymyzk added the question Asks a question about tox-gh-actions label Feb 1, 2021
@ymyzk
Copy link
Owner

ymyzk commented Feb 1, 2021

@brechtm, thanks for filing an issue. As you found in #44 (comment), this is the current expected behavior of tox-gh-actions. Users are expected to add list of environments to run to envlist. Use of skip_missing_interpreters option provided by tox can be one workaround for local environment without all interpreters.

@ymyzk ymyzk closed this as completed Jun 27, 2021
Repository owner locked and limited conversation to collaborators Apr 5, 2023
@ymyzk ymyzk converted this issue into discussion #162 Apr 5, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Asks a question about tox-gh-actions
Projects
None yet
Development

No branches or pull requests

2 participants