-
Notifications
You must be signed in to change notification settings - Fork 23
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
Publish to pypi only once in github actions #47
Conversation
Do we really need both 3.7 and 3.8? HA running with only 3.8 support will still be able to install dependancies build with 3.7 just fine. |
The idea is to run unit tests for both python 3.7 and 3.8 but only build and publish the package with 3.8. |
I think you just need separate jobs for build and another for publish. https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions Each job will have access to the same workspace as the previous so you should be fine to only publish as py37. |
Hi @fbradyirl,
Well, jobs actually do not share the same workspace, only steps of the same job do:
If jobs shared the same workspace, that would cause issues when jobs are executing concurrently. See https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idsteps Sharing artifacts between jobs requires to upload them in one job then download them in a following job. See https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts#passing-data-between-jobs-in-a-workflow That's why I separated the test phases as concurrent jobs from the build and publish phase as a single job. WDYT? |
Sounds good thanks @pdecat |
f70faca
to
19c77da
Compare
19c77da
to
f21f54d
Compare
I pushed two changes to:
|
Resolves an issue introduced in #46 (comment)