Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a tox.ini file to ease local testing #295
Comments
|
It would be useful to disable the codecov comments on PRs, it is spammy (both email and notificationsl) and does not add any real value. We still have the action that can fail if coverage fails. I did this on several projects, is one line like https://github.com/pycontribs/jira/blob/master/codecov.yml#L2 |
|
I'd accept a PR to add tox. Although I'd prefer a solution to run GH actions locally. I like the codecov reports. I wouldn't want to enforce coverage at this point. |
|
@willmcgugan: I have a little experience working with tox and I'd be happy to add a configuration if you like. I'm interested to know more about what you mean by
though. Do you mean you'd like to run whatever the GH actions run locally or do you mean you'd like to trigger a GH action from a local testing environment? |
|
This tool can run GH Actions locally. I'm not sure how practical that is, but it's worth investigating. Otherwise, tox is a reasonable solution. |
|
@willmcgugan: I'll give - name: Test
run: |
source $HOME/.poetry/env
poetry run tox -q --parallel=auto |
|
@willmcgugan: So, I went ahead and installed/ran
Go ahead and
So, somehow this tool cloned something and then only copied part of the repo? As for using Your I propose the following.
The gist is that you should end up with a workflow where devs
If you're cool with this, feel free to assign this issue to me and I'll get started ASAP. If you think it's too much and you'd prefer to keep the current |
|
@reillysiemens Thanks for looking in to that! Maybe act is not quite production ready. I had hoped it could run VMs for all platforms. Personally I've been quite happy running @ssbarnea Has a PR for tox. Feel free to comment on that. |
|
I can assure you that act is not production ready. It only works for some specific cases. I tried to use it myself. ACT is nice but I am keep retesting it every 6 months. I did not want to touch the Makefile, but if you want I can easily convert it to call tox environments. Just let me know if you want to do that. |
As tox.ini still seems to be the ubiquitous for managing local testing for any python project, I would highly appreciate if I can make use of it to run tests.
I would be happy to propose of change for that but I considered better to ask first, as I encountered at least one case were the owner disliked it.