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

Fix tox in github actions and also test py38 #46

Merged
merged 1 commit into from
Mar 6, 2021

Conversation

pdecat
Copy link
Collaborator

@pdecat pdecat commented Mar 6, 2021

Without this change, tox does nothing in github actions jobs: #45 (comment)

And this PR also tests with python 3.8 which is the currently supported version by Home Assistant.

@pdecat pdecat changed the title Fix tox in github actions and also py38 Fix tox in github actions and also test py38 Mar 6, 2021
@pdecat
Copy link
Collaborator Author

pdecat commented Mar 6, 2021

With this change, tox actually runs the unit tests: https://github.com/fbradyirl/openwrt-luci-rpc/pull/46/checks#step:6:50

  Ran 8 tests in 0.005s

Copy link
Owner

@fbradyirl fbradyirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great spot!

@fbradyirl fbradyirl merged commit 2e94e6d into fbradyirl:master Mar 6, 2021
@pdecat pdecat deleted the fix_tox branch March 6, 2021 17:10
@pdecat
Copy link
Collaborator Author

pdecat commented Mar 12, 2021

Oops, I need to alter the github actions workflow to not try and upload the same package twice to pypi now that there is more than one python version (py37 & py38):

HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
File already exists. See https://pypi.org/help/#file-name-reuse for more information.

https://github.com/fbradyirl/openwrt-luci-rpc/runs/2095813523?check_suite_focus=true#step:8:22

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

Successfully merging this pull request may close these issues.

2 participants