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

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

Merged
merged 2 commits into from
Nov 25, 2022

Conversation

choldgraf
Copy link
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
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
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
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
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