-
Notifications
You must be signed in to change notification settings - Fork 79
Fix CI #617
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 CI #617
Conversation
| else | ||
| echo "This is not a pull request event" | ||
| echo "Running all tests" | ||
| exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess exit 1 will make the action failure?
Should we do exit 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To run all tests, we want check_doc to fail. The test main purpose to determine whether anything other than doc has been modified. The test will fail if anything other than doc was modified and will run all tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK just saw continue-on-error: true
So I guess that still marks the failing step as "succeeded"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continue-on-error: true make sure that the jobs below will run irrespective of the failure or success of a step.
I am using the statement the outcome of the step to determine whether the next test will run or not.
if: needs.check_doc.outputs.check_doc_modified == 'failure'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, logically it looks good to me.
Need to merge to master to verify
Describe your changes
When the PR is merged into master, CI is not running.
Explanation
Issue number
Closes #X
Checklist before requesting a review
pkgmt format📚 Documentation preview 📚: https://jupysql--617.org.readthedocs.build/en/617/