Skip to content

tox evaluates tests only for py38, ignores py36/py37 #159

Closed Answered by ymyzk
hbaniecki asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hbaniecki, I think this is expected behavior. Here's how tox-gh-actions understand your configuration.

tox.ini defines the following 5 test environments:

  • py36
  • py38-linux
  • py38-macos
  • py38-windows
  • flake8
    You can check this by running tox -a

Python-check.yml generates 9 tests configurations:

  • Python {3.6,3.7,3.8} with PLATFORM {ubuntu-latest,macos-latest,windows-latest}

py36 test environment doesn't satisfy requirements as it doesn't have a platform factor like linux.


To fix your problem, I'd suggest to update tox.ini to

envlist = py{36,37,38}-{linux,macos,windows}

Furthermore, if you don't need to write platform specific configurations in tox.ini. You can drop configuration for plat…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ymyzk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Asks a question about tox-gh-actions
2 participants
Converted from issue

This discussion was converted from issue #22 on April 05, 2023 14:05.