Skip to content

CI / DOC: skip tests when only files in doc/ is changed #41101

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

Closed
jorisvandenbossche opened this issue Apr 22, 2021 · 0 comments · Fixed by #41310
Closed

CI / DOC: skip tests when only files in doc/ is changed #41101

jorisvandenbossche opened this issue Apr 22, 2021 · 0 comments · Fixed by #41310
Labels
CI Continuous Integration Docs
Milestone

Comments

@jorisvandenbossche
Copy link
Member

For a doc-only change (so inside the doc/ directory, not for docstrings), it should be possible to skip most of the tests builds in CI, and only running the linters and web/docs build should be sufficient.

This gives 1) faster CI feedback for doc PRs, 2) less chance on unrelated (flaky) failures on such PRs, and 3) in general reduces the CI load.

For the github actions, there is a on.paths option to do this, and it actually supports the "exclude paths" feature that we need: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-ignoring-paths

For the Azure builds, it seems this might also be possible: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/azure-repos-git?view=azure-devops&tabs=yaml#paths

cc @afeld

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants