Skip to content
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

RFE: Run all environments by default #8

Open
hroncok opened this issue Jun 25, 2020 · 4 comments
Open

RFE: Run all environments by default #8

hroncok opened this issue Jun 25, 2020 · 4 comments

Comments

@hroncok
Copy link
Member

hroncok commented Jun 25, 2020

Currently, the actions runs tox with -e${{ inputs.tox_env }}. The value is required and the default is py38.

As a consequence, I need to have the environments listed in 2 places, which I don't particularly like. The default should IMHO be the run all of them. Or at least, this should be an option.

@encukou
Copy link
Member

encukou commented Aug 6, 2020

I like to have individual environments show up as separate tests on GitHub, and I haven't found a way to do this while taking the list of all environments from Tox.

@hroncok
Copy link
Member Author

hroncok commented Aug 6, 2020

I see (and I have kinda figured that out in the meantime). Let's document this?

@encukou
Copy link
Member

encukou commented Nov 11, 2021

Apparently this can be done now: https://github.com/tox-dev/gh-action-tox/blob/experiments/composite-action/.github/workflows/call-tox.yml

@medmunds
Copy link

I just released a tox plugin to try to address this: https://pypi.org/project/tox-gh-matrix/. It generates a JSON version of the tox envlist, which can be used to create a GH workflow build matrix with fromJSON().

(I had the same need for a project I maintain, and stumbled across this issue while looking to see if anyone else had solved the problem.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants