Skip to content

Documentation on how to use new labels #2406

Answered by jugmac00
ericchansen asked this question in Q&A
Discussion options

You must be logged in to vote

This is untested, but should probably work:

[tox]
envlist = py37, py38
labels =
    gitlab = py37-gitlab, py38-gitlab

[testenv]
extras =
    testing
    gitlab: gitlab
commands = pytest

On gitlab you could then run tox -m gitlab.

Here, two features are combined.

The new labels feature, as outlined in https://tox.wiki/en/rewrite/config.html#labels and factors as described in https://tox.wiki/en/latest/config.html?highlight=factor#factors-and-factor-conditional-settings

Please note that labels are a feature of tox4 for which currently there is a beta available at https://pypi.org/project/tox/4.0.0b2/

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ericchansen
Comment options

@jugmac00
Comment options

@ssbarnea
Comment options

ssbarnea Aug 5, 2024
Collaborator

@gaborbernat
Comment options

Answer selected by ericchansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature:new something does not exist yet, but should
4 participants
Converted from issue

This discussion was converted from issue #2405 on April 25, 2022 20:39.