-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: skip tests when only files in doc/web changes (github actions) #41310
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
CI: skip tests when only files in doc/web changes (github actions) #41310
Conversation
ShaharNaveh
commented
May 4, 2021
- closes CI / DOC: skip tests when only files in doc/ is changed #41101
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
@ShaharNaveh Looking at the diff, I think this PR is making it so that we only do the doc biuld if anything in However, I think we actually want to other way around: we can skip the other (non-doc) builds if only The doc build also needs to run if eg a docstring has changed in the actual pandas source. |
That's correct.
Oh my, I completly understood that wrong 😅 |
This reverts commit 7eaca3f.
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.
Looks good., just couple of things.
@jorisvandenbossche do you want to skip the tests in the master builds too? Feels like only skipping for PRs, and running full master builds can make sense too.
@ShaharNaveh do you think you can commit this in the master of your fork, and open a PR in your fork modifying the docs, and another modifying the docs and something else, and see if he builds run as expected? I think should be quite fast to set up, and we'll be on the right side, and avoid much disruption if we're missing something here. Thanks!
Yes, I think it would be good to only skip the tests on PRs when appropriate, and on master still always run the tests. (this would mean removing the |
Sure:) |
|
One thing that should be noted is that in PR#2 (Doc and Code changes) that the Azure pipeline does not trigger at all, but I think this is normal (I hope) |
Thanks for testing it!
Yes, I think that is indeed to be expected, since AFAIK Azure Pipelines are not activated on forks |
@ShaharNaveh do you have time to address the last comments please? Thanks! |
I addressed those comments a while back, just forgot to mark them as "resolved". |
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.
Great idea! Just got a comment
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.
Thanks @ShaharNaveh - this looks correct to me, and it can be easily reverted if there's any issues, so let's merge and see
- 1.2.x | ||
paths: | ||
exclude: | ||
- 'doc/*' |
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.
any reason why the other have doc/**
and this one has doc/*
?
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.
any reason why the other have
doc/**
and this one hasdoc/*
?
Yes, because this is the "azure" CI, and the other files are related to the "github actions" CI.
I just copied the syntax from their examples in the docs, I haven't really tested the differences.
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.
Thanks @ShaharNaveh - this looks correct, and if it's not it's easy to revert, so let's merge
@MarcoGorelli our release scripts work from master and not a commit hash. will try to push the tag to master but may fail. in that case will need to change the milestone on this and the other PR. |
…andas-dev#41310) * CI: skip tests when only files in doc/web changes (github) * Fixed yaml file indent * Revert "CI: skip tests when only files in doc/web changes (github)" This reverts commit 7eaca3f. * CI: Don't run lint if only doc changes (github worklow) * CI: Don't run lint if only doc changes (azure) * Fix (ex|in)clude logic in azure templates * Fixed small "typo" * Fix location of the "path" parameter * Removed extra "trigger" * Fix for comment https://github.com/pandas-dev/pandas/pull/41310/files#r629288230 * Fix for comment https://github.com/pandas-dev/pandas/pull/41310/files#r629289631 * Fix for comment https://github.com/pandas-dev/pandas/pull/41310/files#r628420098 * Fix for comment pandas-dev#41310 (comment) * Fix for comment pandas-dev#41310 (comment) * Fix for comment pandas-dev#41310 (comment) * Only ignore on "pull_request" not on "push" * Addresing comments Ref: pandas-dev#41310 (comment) Co-authored-by: ShaharNaveh <>