Skip to content

tox-gh-actions selects too many environments #172

Closed Answered by ymyzk
pharmpy-dev-123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, thanks for asking a question. I guess your tox.ini is something like the following and running tox with tox-gh-actions runs both unit and unit-cover.

[tox]
envlist = unit, unit-cover, <maybe other envs?>

[gh-actions]
python =
    3.10: unit

[testenv]

I cannot come up with a clean solution but I can propose a few workarounds.

Option 1: If your tox.ini is simple and doesn't have many other envs, you can specify the list of environments you want to execute explicitly like tox -e unit. This will disable tox-gh-actions' environment overrides but you can still enjoy other features of tox-gh-actions such as log line grouping. https://github.com/ymyzk/tox-gh-actions/tree/v2.10.0#overrid…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ymyzk
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 #124 on April 05, 2023 14:13.