Skip to content

MAINT: Factor publish to pypi workflow into dedicated file#645

Merged
choldgraf merged 2 commits intoexecutablebooks:masterfrom
choldgraf:maint-publish-pypi
Nov 25, 2022
Merged

MAINT: Factor publish to pypi workflow into dedicated file#645
choldgraf merged 2 commits intoexecutablebooks:masterfrom
choldgraf:maint-publish-pypi

Conversation

@choldgraf
Copy link
Copy Markdown
Member

Currently we have a workflow embedded in tests.yml that is called only if a new release is made. However this shows us as "not run" in our test suite in github and messes with the passing tests condition.

This PR factors that out into a dedicated workflow file that is run on publish and calls our test suite before running the publish command. That should mean the "Publish to PyPI" action never gets run unless we are publishing.

cc @AakashGfude this should make it easier to quickly see if the tests are happy in PRs

uses: ./.github/workflows/tests.yml
publish:
name: publish
needs: [tests] # require tests to pass before deploy runs
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we also need 'docs-audit' here, or 'tests' is good enough you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This will run all of the jobs that are in that workflow file, so it'll run docs-audit as well 👍

Copy link
Copy Markdown
Member

@AakashGfude AakashGfude left a comment

Choose a reason for hiding this comment

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

Thanks @choldgraf for this feature. Looks good to me. Apart from one comment above.

@choldgraf choldgraf merged commit 060ba47 into executablebooks:master Nov 25, 2022
@choldgraf choldgraf deleted the maint-publish-pypi branch November 25, 2022 08:15
@choldgraf
Copy link
Copy Markdown
Member Author

thanks for the approve @AakashGfude - I think those two unreported tests are bugs in github not due to these changes, so lemme merge and see if that resolves it

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