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

Have an official GitHub Action for invoking tox #1

Open
webknjaz opened this issue May 2, 2019 · 11 comments
Open

Have an official GitHub Action for invoking tox #1

webknjaz opened this issue May 2, 2019 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@webknjaz
Copy link
Collaborator

webknjaz commented May 2, 2019

The motivation is similar to https://discuss.python.org/t/official-github-action-for-publishing-to-pypi/1061.
I think, providing a ready-to-use action for executing some env (of a bunch of them) is nice.

It could post results back to GitHub via Checks API but I'm not sure whether there's any generic/parsable output of tox execution to be used for this.

@gaborbernat let's discuss this IRL.

@webknjaz
Copy link
Collaborator Author

webknjaz commented May 2, 2019

A very minimalistic example of such action: https://github.com/sanitizers/octomachinery/blob/master/.github/actions/python3.7-tox/Dockerfile

GitHub
Invisible engine driving octobot machines. Simple, yet powerful. [DEMO BOT @ https://github.com/sanitizers/chronographer-github-app] | official web-site is at --> - sanitizers/octomachinery

@gaborbernat gaborbernat transferred this issue from tox-dev/tox May 2, 2019
@gaborbernat
Copy link
Member

Looks good @webknjaz please create a PR with the code under this organization, thanks!

@gaborbernat gaborbernat added the enhancement New feature or request label May 10, 2019
@gaborbernat gaborbernat pinned this issue May 10, 2019
@gaborbernat
Copy link
Member

gaborbernat commented May 10, 2019

Can we add some basic documentation in the README about how to use it?

We probably also want an image that has more than one python, I would propose something that has the core currently supported set (2.7, 3.5, 3.6, 3.7). In the current form, only 3.7 envs will run. Or we want a separate image per target python.

@webknjaz
Copy link
Collaborator Author

Yes, that would be great. We could also mention this in tox's docs too. I just haven't had time to add more. Also, tox-dev doesn't have Actions enabled which apparently prevents us from publishing Actions to the Marketplace. I'll try to take care of this as well.

@gaborbernat
Copy link
Member

Any day now 👍 screenshot-github com-2019 05 10-13-17-10

@webknjaz
Copy link
Collaborator Author

I was actually going to ask a human from GitHub to do a favor :)

@njzjz
Copy link

njzjz commented May 11, 2019

I expect an action for tox-conda!

@gaborbernat
Copy link
Member

We don't need a specialized version of it, just define tox-conda in the requires part to tox.ini and you'll have it auto provisioned👌

@njzjz
Copy link

njzjz commented May 11, 2019 via email

@webknjaz
Copy link
Collaborator Author

@njzjz feel free to suggest an image having all of the major Python interpreters there.

@martinlanton
Copy link

martinlanton commented Aug 24, 2020

Hi!
I was looking for a github action for tox, but the only one I found was specifically for fedora : https://github.com/marketplace/actions/python-tox-on-fedora

I did find an action repository under tox-dev though : https://github.com/tox-dev/action
However this one is empty.

There also seem to be a gh-action-tox repository, which might be what I am looking for, but this one only contains one docker file, and the readme doesn't tell much... so I was wondering if I was missing something or if there was a place I could find the action mentioned in this thread, and/or some information on how to run it.
Cheers!

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

No branches or pull requests

4 participants