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

remove tox in favor of gh actions/act #1644

Merged
merged 2 commits into from
Mar 15, 2023
Merged

remove tox in favor of gh actions/act #1644

merged 2 commits into from
Mar 15, 2023

Conversation

bewing
Copy link
Member

@bewing bewing commented May 20, 2022

No description provided.

@mirceaulinic
Copy link
Member

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.

@ktbyers
Copy link
Contributor

ktbyers commented May 21, 2022

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.

@mirceaulinic
Copy link
Member

mirceaulinic commented May 22, 2022

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?

@ktbyers
Copy link
Contributor

ktbyers commented May 22, 2022

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.

@bewing
Copy link
Member Author

bewing commented May 24, 2022

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.

@mirceaulinic
Copy link
Member

mirceaulinic commented May 24, 2022 via email

@bewing
Copy link
Member Author

bewing commented Mar 15, 2023

better late than never, documentation updated. Is there a way to preview doc rendering?

@bewing
Copy link
Member Author

bewing commented Mar 15, 2023

also, might want to update https://github.com/napalm-automation/napalm/blob/develop/.github/workflows/commit.yaml#L11-L13 to have 5 in parallel to run all the python tests in a single go (instead of 4 workers for 5 python versions)

@ktbyers
Copy link
Contributor

ktbyers commented Mar 15, 2023

@bewing Don't know on the preview of doc rendering, but I would just say we push it and check it after the fact and then fix it if broke.

Sounds good on the workers increase.

@ktbyers ktbyers merged commit 8b670fe into develop Mar 15, 2023
@bewing bewing deleted the deltox branch March 15, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants