tox-dev / gh-action-tox

Run tox as a Github Action
7 stars 3 forks source link

Have an official GitHub Action for invoking tox #1

Open webknjaz opened 5 years ago

webknjaz commented 5 years ago

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 commented 5 years ago

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

GitHub
sanitizers/octomachinery
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 commented 5 years ago

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

gaborbernat commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

webknjaz commented 5 years ago

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

njzjz commented 5 years ago

I expect an action for tox-conda!

gaborbernat commented 5 years ago

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 commented 5 years ago

But there is no conda installed in this action. It will be better if an action based on miniconda is created.

On May 11, 2019, at 20:51, Bernát Gábor notifications@github.com wrote:

conda

webknjaz commented 5 years ago

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

martinlanton commented 4 years ago

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!