napalm icon indicating copy to clipboard operation
napalm copied to clipboard

remove tox in favor of gh actions/act

Open bewing opened this issue 3 years ago • 6 comments

bewing avatar May 20 '22 21:05 bewing

Is this what you're proposing to use for local testing? https://github.com/nektos/act I'm not familiar with it yet, but not opposed. We'll need to update the docs for this change though.

mirceaulinic avatar May 21 '22 09:05 mirceaulinic

With switch to GH actions, we ceased using Tox so we should just go ahead and remove it.

We can decide separately whether we want a local way to test GH actions behaviors.

ktbyers avatar May 21 '22 16:05 ktbyers

With switch to GH actions, we ceased using Tox so we should just go ahead and remove it. We can decide separately whether we want a local way to test GH actions behaviors.

I think I disagree with that. I'm looking at it from a user / contributor perspective: having tox around doesn't hurt, while silently changing (or dropping) the current way of testing locally without offering a (documented) alternative does hurt. How would people test their proposed contributions before opening a PR?

mirceaulinic avatar May 22 '22 09:05 mirceaulinic

Does Tox even work? At a minimum it is all out of date and doesn't actually correspond to our testing in GitHub actions.

For example, it is still testing Python 3.6 which will fail.

ktbyers avatar May 22 '22 17:05 ktbyers

Is this what you're proposing to use for local testing? https://github.com/nektos/act I'm not familiar with it yet, but not opposed. We'll need to update the docs for this change though.

I think we can generally recommend pytest for local, single interpreter testing, and act for those who wish to execute the full GH actions suite prior to pushing.

bewing avatar May 24 '22 12:05 bewing

Fair enough. Would you be willing to add some docs around this?

On Tue, 24 May 2022, 14:55 bewing, @.***> wrote:

Is this what you're proposing to use for local testing? https://github.com/nektos/act I'm not familiar with it yet, but not opposed. We'll need to update the docs for this change though.

I think we can generally recommend pytest for local, single interpreter testing, and act for those who wish to execute the full GH actions suite prior to pushing.

— Reply to this email directly, view it on GitHub https://github.com/napalm-automation/napalm/pull/1644#issuecomment-1135886592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7L3F56DPWTWQKXLPRK3PTVLTGTNANCNFSM5WQW3XSQ . You are receiving this because you commented.Message ID: @.***>

mirceaulinic avatar May 24 '22 21:05 mirceaulinic